For those who keep local syslogs and want them to be included in the 'regular' log rotation scheme, you can create a settings file, e.g. rsyslog_local with content similar to the below. Copy this file to the folder /etc/logrotate.d
/mnt/user/syslog/*.log {
su nobody users
missingok
create 0666 nobody users
size 1M
rotate 2
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/rsyslogd.pid 2>/dev/null` 2>/dev/null || true
endscript
}
/mnt/user/syslog/*.log refers to the location where the log files are stored.
- 2
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.