Log cleanup like logrotate

Hello,

we would like to use logrotate to cleanup {server,scheduler,mom}_logs. How could be archive this? The files are already names by the date and this confuses logroate. Are we required to write our own script for this?

Kind regards
Philipp Rehs

We have to write our own utility scripts to do the archival . You can archive this as below in a cronjob.

find /var/spool/pbs/server_logs/ -mtime +1 -print -exec gzip {} \;

Thank you