Created
March 10, 2013 08:43
-
-
Save josephsu/5127670 to your computer and use it in GitHub Desktop.
td-agent ( fluentd ) logrotate.d setting
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
/var/log/td-agent/td-agent.log { | |
size 200M | |
rotate 6 | |
missingok | |
create 644 td-agent td-agent | |
compress | |
delaycompress | |
notifempty | |
sharedscripts | |
postrotate | |
[ ! -f /var/run/td-agent/td-agent.pid ] || kill -USR1 `cat /var/run/td-agent/td-agent.pid` | |
endscript | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment