Logrotate is not part of PM but comes with Linux. If it is not already available consult with your Linux administrator to add the package. See https://linux.die.net/man/8/logrotate for the Logrotate documentation. For illustration this is the content of our config file (/etc/logrotate.d/lsflog) for the LSF and PM logfiles:
/srv/pss/pm/log/*.ourcompany.nl /srv/pss/lsf/log/*.ourcompany.nl {
copytruncate
daily
rotate 60
missingok
dateext
su lsfadmin lsf
}
This does the following:
1) Make a daily copy of each file adding a date extension to the name.
2) Truncate the file, wiping its content without affecting programs that are writing to it. This keeps the file in place.
3) No more than 60 versions are kept. Logfiles older than 60 days are deleted.
The pathnames are likely different in your installations.
Hope this helps,
-- Jan.