Created
March 26, 2013 03:22
-
-
Save ijin/5242874 to your computer and use it in GitHub Desktop.
td-agent logrotate setting
This file contains hidden or 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
/var/log/td-agent/*.log { | |
daily | |
rotate 10 | |
compress | |
delaycompress | |
notifempty | |
create 640 td-agent td-agent | |
sharedscripts | |
postrotate | |
pid=/var/run/td-agent/td-agent.pid | |
test -s $pid && kill -USR1 `cat $pid` | |
endscript | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment