Forum Moderators: phranque

Message Too Old, No Replies

apache log files to ignore specific IP Address?

         

vbsaltydog

3:14 am on Feb 5, 2006 (gmt 0)

10+ Year Member



Hello everyone,

I was wondering if there is a way to tell apache to not record events from a specific IP Address in the access logs? I like the detail of reading the log files directly vs. using a log file stats program like AWSTATS but I would like it if the logs files were not recording info from my IP Address. I am on the same subnet as the web server if that makes any difference.

Thanks to all.

jdMorgan

3:45 am on Feb 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is another case where The CustomLog directive, along with SetEnvIf comes in handy.

See this recent related thread [webmasterworld.com].

You'd just need to test for REMOTE_ADDR instead of REQUEST_URI. You could write your own IP's log entries to /dev/null

Jim