IBM Support

Opensource logrotate utility for AIX

Technote (FAQ)


Question

How can I rotate error log or other log files?

Cause

Ability to rotate log files to prevent unchecked growth and filesystem space usage.

Answer

*** UNSUPPORTED *** UNSUPPORTED *** UNSUPPORTED ***

Disclaimer
==========

Information in this document is correct to the best of our knowledge at the
time of this writing. Please use this information with care. IBM will not be
responsible for damages of any kind resulting from its use. The use of this
information is the sole responsibility of the customer and depends on the
customer's ability to evaluate and integrate this information into the
customer's operational environment.



There is a GNU open source utility called 'logrotate' which can be installed on AIX in the form of an RPM and used for rotating log files. Once installed, the /etc/logrotate.conf file can be configured per your needs and a cron job configured to call logrotate run at the desired intervals.

The latest version of logrotate for AIX RPM can be obtained from AIX Linux Toolbox website...
http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html
                          
Note: logrotate for AIX RPM can also be obtained from http://www.perzl.org/
                                                                        
It should come with a README on how to configure, but the following website has an easy to follow guide to configuration of logrotate...

http://www.perzl.org/aix/index.php?n=Main.Logrotate
                                              

                                                                       
Additional information on logrotate may be found on the IBM developerWorks:Forum...

https://www.ibm.com/developerworks/forums/index.html


The logrotate utility is not an IBM product and is unsupported but IBM, however some customers have indicated they have used it with success. Please install and use logrotate at your own risk.

*** UNSUPPORTED *** UNSUPPORTED *** UNSUPPORTED ***

Document information

More support for: AIX family

Software version: Version Independent

Operating system(s): AIX

Reference #: T1012796

Modified date: 06 June 2011