Forums

possible to prevent specific web addresses from being logged in access log?

Hi, I was wondering if it is possible to make a list of URLs (or use a regex match) that would not get logged in the access log. I have some dev queries and site maintenance that sometimes take up lots of space in the log, which can push legitimate customer access way down the page or onto the archived logs, making those harder to find.

I can see how this could be dangerous, if you're not logging absolutely everything, but my use case would just be some very simple endpoints.

Thanks.

...maybe it would be safe if the incoming request would have to match both the URL (or pattern via regex) AND come from a whitelisted IP address.

hmm- since the access log is single line, you could possibly just pipe it through a grep -v your-ip-address and remove the dev queries?