How to logrotate a file after X days with logadm?

Hi Guys -

We have the /var/adm/pacct file currently configured to log rotate using logadm - here is the entry in logadm.conf:

/var/adm/pacct -C 0 -N -P 'Wed Oct 23 08:00:00 2013' -a '/usr/lib/acct/accton pacct' -g adm -m 664 -o adm -p never

Just want to ask if it would like possible to adjust the configuration so that the pacct will only be logrotated after X days e.g. 2 days?

Thanks in advance!

Have you tried to read the logadm man page?

1 Like