librenms/misc/librenms.logrotate
dragans 547451974d Update librenms.logrotate (#8220)
* Update librenms.logrotate

- Change path /opt/librenms/logs/*log so that logrotate catches http logs (access_log and error_log).
- Added SU parameter to rotate files with librenms user, as it was throwing insecure permissions error without it.
- Added CREATE parameter to create new log files as librenms user.

* Update librenms.logrotate
2018-02-07 13:44:17 -06:00

12 lines
198 B
Plaintext

# /etc/logrotate.d/librenms
/opt/librenms/logs/*log {
su librenms librenms
weekly
rotate 6
compress
delaycompress
missingok
notifempty
create 664 librenms librenms
}