How to put log rotate in aix?
To
rotate the file you should append 'rotate size <desired size> files
<desired number of files> part to the above entry similar to the
following entry in your /etc/syslog.conf
*.info;mark.none /var/adm/syslog rotate size 32m files 8
compress
once done that please "refresh
-s syslogd"
Output
similar to below.
ls
-l /var/adm/syslog*
-rw-rw-r-- 1 adm adm 19718076 08 Apr 09.34 /var/adm/syslog
-rw-rw-r-- 1 adm adm 2728076 07 Apr 09.34 /var/adm/syslog.0.Z
-rw-rw-r-- 1 adm adm 2608076 07 Apr 09.34 /var/adm/syslog.1.Z
-rw-rw-r-- 1 adm adm 2688076 07 Apr 09.34 /var/adm/syslog.2.Z
-rw-rw-r-- 1 adm adm 2528076 06 Apr 09.34 /var/adm/syslog.3.Z
-rw-rw-r-- 1 adm adm 2378076 06 Apr 09.34 /var/adm/syslog.4.Z
-rw-rw-r-- 1 adm adm 2898076 06 Apr 09.34 /var/adm/syslog.5.Z
-rw-rw-r-- 1 adm adm 2678076 06 Apr 09.34 /var/adm/syslog.6.Z
-rw-rw-r-- 1 adm adm 2888076 06 Apr 09.34 /var/adm/syslog.7.Z