6

How to block Nginx access log statements from specific user agents

view full story
linux-howto

http://serverfault.com – I am looking to turn off logging in the Nginx access log file from specific requests from http user agents. Basically from the Amazon ELB Health Check and our external (Pingdom) monitoring. Since these come every few seconds, makes testing hard to sort through the logs. "GET / HTTP/1.1" 200 727 "-" "ELB-HealthChecker/1.0" "GET /login HTTP/1.1" 200 7492 "-" "Pingdom.com_bot_version_1.4_(http://www.pingdom.com/)" I was able to block logging for image files, but have not seen anything for incoming requests: location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml|svg)$ { access_log (HowTos)