Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Get logwatch to pick up nginx logs - put this in /etc/logwatch/conf/logfiles/
LogFile = nginx/*access.log
LogFile = nginx/*access.log.1
Archive = nginx/*access.log.*.gz
# Expand the repeats (actually just removes them now)
*ExpandRepeats
# Keep only the lines in the proper date range...
*ApplyhttpDate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment