You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After much searching, the following might be usable for surgical log editing:
printf '%s\n' 'g/python-requests/d' w q | ed -s /var/log/pfblockerng/dnsbl.log
We can do the same with nginx.log, etc.
We would need something to reliably match on, user-agent seems pretty reliable. Given these are firewalls, odds are they are at the very edge of the network anyway, so "blending in" with a user agent seems kind of pointless given we are zapping the logs. Also, TLS is in play.
Might consider it for the cleanup script...
I should look and see if this thing ships logs to somewhere. I bet the cheeky fucker does.
The text was updated successfully, but these errors were encountered:
After much searching, the following might be usable for surgical log editing:
We can do the same with nginx.log, etc.
We would need something to reliably match on, user-agent seems pretty reliable. Given these are firewalls, odds are they are at the very edge of the network anyway, so "blending in" with a user agent seems kind of pointless given we are zapping the logs. Also, TLS is in play.
Might consider it for the cleanup script...
I should look and see if this thing ships logs to somewhere. I bet the cheeky fucker does.
The text was updated successfully, but these errors were encountered: