Skip to content

Instantly share code, notes, and snippets.

@amtinits
Created December 12, 2011 04:14
Show Gist options
  • Save amtinits/1464809 to your computer and use it in GitHub Desktop.
Save amtinits/1464809 to your computer and use it in GitHub Desktop.
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