Is it possible to exclude certain IP addresses from Nginx's access.log, for example where lots of the requests come from a monitoring server?
Is it possible to exclude certain IP addresses from Nginx's access.log, for example where lots of the requests come from a monitoring server?
There is no built in filtering to do this.
If possible you can point your monitoring server to a special file and do it like this:
I would recommend you the same but slightly different:
This gives you the advantage of separating the monitoring entries from the real production logs but still you have everything at hand if needed.