itamae/cookbooks/vector/files/etc/logrotate.d/vector-syslog

15 lines
275 B
Plaintext
Raw Normal View History

2020-10-31 07:53:32 +00:00
/var/log/vector/syslog.log {
ifempty
dateformat .%Y%m%d
missingok
compress
daily
rotate 10
prerotate
/bin/systemctl stop vector-syslog.service
endscript
postrotate
/bin/systemctl start vector-syslog.service
endscript
}