/opt/rundeck/tgt/var/log/service.log {
copytruncate
daily
missingok
rotate 7
compress
delaycompress
notifempty
create 777 root root
}
Anything wrong here ?To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/676cbbbb-d772-42d5-993f-30f0c4a0855cn%40googlegroups.com.
logrotate: ALERT exited abnormally with [1]
Hi Venkat,
On Centos 7 I did an example based on this.
1) Go to /etc/logrotate.d folder and create a new file named “rundeck”, put the following content on that file:
/path/to/your/service.log {
su root root
copytruncate
daily
missingok
rotate 7
compress
delaycompress
notifempty
create 640 root adm
}
2) Test the logrotate file with logrotate --force /etc/logrotate.d/rundeck. That command helps you to identify if your configuration or the file has some problem. If both are ok you can see the log rotated.
Hope it helps!
/opt/rundeck/tgt/var/log/service.log {
su root root
copytruncate
daily
missingok
rotate 7
compress
delaycompress
dateext
dateformat -%Y%m%d
notifempty
create 640 root adm
}
Hi Venkat,
I did a little test to rotate Rundeck service.log hourly on Centos 7 and works well.
I created rundeck file at /etc/logrotate.d/ path:
/var/log/rundeck/service.log {
su root root
copytruncate
hourly
missingok
rotate 7
compress
delaycompress
notifempty
create 640 root adm
}
Following this, I enabled the hourly logrotate conf (needed for hourly, the daily logrotate configuration it’s already set on /etc/cron.daily path by default, maybe it’s not set in your case?) , and works as expected, take a look.
Check carefully the logrotate configuration on your OS.
Hope it helps!