Originally posted by: sck
Hi,
You can install the logrotate rpm in AIX. After installing the rpm one configuration file will be created in /opt/freeware/etc/logrotate.conf which can help you to perform logrotation on various log files.
Output of logrotate.conf file
/var/adm/ras/errlog {
monthly
rotate 3
}
Above entry from logrotate.conf will rotate errpt logs every month and create a fresh errpt on start of month as well as it will keep three old errpt log file.
To automate the task you can take help of crontab as well.
Kindly take a look at attachment.
Regards
Sunil
#AIX-Forum