Does anyone have a logwatch filter for the mod_security module?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
derhansen/logwatch-modsec2 on GitHub has a great example of a Logwatch filter for mod_security. The email output it generates looks like:
If you’re just looking for an example of parsing the log file, the perl script that does that is here.