gist/logrotate/rsyslog-json
2023-05-06 10:32:26 +00:00

14 lines
254 B
Plaintext

/var/log/remote/*/*/*.log /var/log/remote/*/*/*.json {
daily
missingok
rotate 7
compress
delaycompress
notifempty
create 0640 root adm
postrotate
invoke-rc.d rsyslog rotate >/dev/null 2>&1 || true
endscript
}