Directory Filtering

General discussions about Advanced Log Analyzer
Post Reply
taschen

Directory Filtering

Post by taschen »

I've tried to filter out directories from my reports using Site Filters:

href;includes;/dir_to_ignore;skip_line;

but it does not seem to filter the dir at all.

Any ideas?

Abacre
Site Admin
Posts: 1223
Joined: Mon Jan 31, 2005 5:32 pm

Post by Abacre »

Hi,

Your filter description should work. Could you send us a fragment of your log file for testing?
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Guest

Post by Guest »

I've got a large log file (75MB) from the first few days of this month and I'm trying to isolate stats for the 11th using the following filter:

filter=day;not_equals;11;skip_line;

Should that be working? Because the program is producing stats for all dates in the log file.

Abacre
Site Admin
Posts: 1223
Joined: Mon Jan 31, 2005 5:32 pm

Post by Abacre »

Yes. If you have one log file for the whole month. Sure it will exclude
11th from the log file. Otherwise if you have for example 4 log files
for 4 months it will exclude all 11th from all months. In that case if
you want to exclude 11th September you have to add a new line in filter
to specify the month. So it would be:
filter=day;not_equals;11;skip_line;
filter=month;not_equals;09;skip_line;
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Guest

Post by Guest »

filter=day;not_equals;11;skip_line;

Same thing as:

if (day != 11) { skip_line }

...or...

if (day == 11) { !skip_line }

...The filter should be excluding all days that are not the 11th, regardless, though, it's not skipping anything. I'm getting stats from the entire month, not just the 11th.

Suggestions?

Abacre
Site Admin
Posts: 1223
Joined: Mon Jan 31, 2005 5:32 pm

Post by Abacre »

Sorry I made obvious mistake. The correct answer is that the filter:
filter=day;not_equals;11;skip_line;
will skip all days of month except 11.

So if the task is to include all days of month except 11 you should
use the filter:
filter=day;equals;11;skip_line;
which means:
if (day == 11) { skip_line }
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Guest

Post by Guest »

Gotcha. I think we're on the same page now -- but what I was actually wanting was the stats for just one day.

The site I'm working with gets big referrer spikes on given days that disappear in the monthly totals, so I'm wanting to run daily stats.

So I really do want to see JUST the 11th (since the logfiles are broken down by month), but that filter is actually not doing anything at all.

Post Reply