Wednesday, September 23, 2009

filter selective IPs in http access_log

F5 (BIG IP) was filling up http acess logs while doing health check , I have decided not to write this IP in access_log.
avoided images reuest messages as-well.

included following settings in httpd.conf


SetEnvIf Remote_Addr "10\.41\.15\.249" nolog
SetEnvIf Request_URI .gif$ images nolog
#CustomLog logs/access_log common

CustomLog logs/images_log common env=images
CustomLog logs/access_log common env=!nolog

No comments:

Post a Comment