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

    Posted Wed October 17, 2012 05:08 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

    Posted Wed October 17, 2012 06:37 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,


  • 3.  IHS log rotation

    Posted Mon January 07, 2013 12:16 PM

    We are using a earler version of HTTP Server and got triped up beacuase we did not use the absolute path. Just in case your still working on this 

    "Prior to IBM HTTP Server 7.0, the absolute path must be used to specify the location on the rotatelogs executable and also the location of the logfile.


    Example for Microsoft Windows:
    CustomLog "|D:/IBM/HTTPServer/bin/rotatelogs.exe -l D:/IBM/HTTPServer/logs/access%Y_%m_%d_%H_%M_%S.log 3600" common"
     


    www-01.ibm.com/support/docview.wss?uid=s...