Created
December 12, 2011 04:14
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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