Skip to content

Instantly share code, notes, and snippets.

@josephsu
Created March 10, 2013 08:43
Show Gist options
  • Save josephsu/5127670 to your computer and use it in GitHub Desktop.
Save josephsu/5127670 to your computer and use it in GitHub Desktop.
td-agent ( fluentd ) logrotate.d setting
/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