WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  IHS Log rotation In AIX

    Posted Wed October 17, 2012 05:07 AM
    Hi All,

    Please suggest.

    I want to rotate IHS log files by size and time. My environment log file size is increasing.  I want to create new log  file every 15 days.  Please suggest.


    How we can create new log files by size or time.


    Thanks,

    Chinna


  • 2.  IHS Log rotation In AIX

    Posted Wed October 17, 2012 06:49 AM
    Hi chinna,

      httpd.apache.org/docs/2.2/programs/rotat...
     
      Here some examples
      httpd.apache.org/docs/2.2/programs/rotat...
     
      For time (in seconds)

           CustomLog "|bin/rotatelogs /var/logs/logfile 1296000" common
     
      For size

           CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common

      Hope this helps.
     
    Regards,