Forum Moderators: phranque

Message Too Old, No Replies

Logging Question

LogExclusion not working

         

cn6321

9:44 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



We've set up a custom log to exclude internal IP addresses, but it's not working. See directives below. How do you get this to work?

Custom Log
Log:
/httplogs/access
Attribute:
Environment variable condition:!LogExclusion

Custom Environment Variable
Variable: LogExclusion
Variable Value: "NoLog_111.111.1.*"
(IP address includes wildcard character)
Attribute: Request_Addr
Attribute: ^111\.111\.1\.(.*)

lemat

11:01 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



I've set this up in another way...

SetEnvIf Remote_Addr "^192\.168\.0\." LOCAL=true
CustomLog "/var/log/httpd/access_log" combined env=!LOCAL
CustomLog "/var/log/httpd/access_local_log" combined env=LOCAL

cn6321

2:03 pm on Feb 26, 2004 (gmt 0)

10+ Year Member


Thanks, I'll give that a try.