IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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
Expand all | Collapse all

IS Log rotation

  • 1.  IS Log rotation

    Posted Sat January 24, 2015 08:38 AM

    Hi all,

    I can’t find any infos regarding log rotation. Is there a way in IS to rotate logs and compress the old ones?
    IS is deployed on a Linux server, I might use logrotate but if there a way in IS I prefer.

    webMethods Integration Server version 9.5.

    Thanks


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: IS Log rotation

    Posted Mon January 26, 2015 05:01 AM

    Hello,

    Even I have observed this from 9.0 release, I think this is the new default behavior of server log since 9.0 release. We need to check this with SAG global support to see if the log rotation can be enabled.

    Meanwhile you can try adding the below settings on IS:

    watt.server.logRotateInterval=86400000

    or

    watt.server.logRotateInterval=1440

    Please post your comments.


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: IS Log rotation

    Posted Mon January 26, 2015 11:31 AM

    Hi M@he$h,

    thanks for your answer on IS, looking into “Extended Settings” I only got the followings

    watt.server.log.alertMaxEntries
    watt.server.log.maxEntries
    watt.server.log.orphanLoggers
    watt.server.log.queued
    watt.server.log.refreshInterval
    watt.server.login.userFtpDir
    watt.server.loginFailureLimit

    and looking for it I’ve found out that watt.server.logRotateInterval it’s only for statistics log, is that right?

    How can I set the rotation of server.log?

    Thanks


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: IS Log rotation

    Posted Mon January 26, 2015 12:03 PM

    I just checked one of my 9.5 instances.

    There is a wM internal scheduler (system task) named “Log Recycle”.
    This one should rotate the logs automatically on a daily basis.

    For compressing the old logs we have build our one scheduled service.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: IS Log rotation

    Posted Mon January 26, 2015 02:35 PM

    Hi,

    watt.server.logRotateInterval I guess it should work for server.log. Try giving this settings on extended settings. Restart the IS if required.

    And also we can think of the solution provided by Holger regarding the scheduled service to compress the old server logs.

    @ Holger,

    Can you share more details on this please?


    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: IS Log rotation

    Posted Fri January 30, 2015 10:14 AM

    Try out this setting watt.server.logRotateInterval=1440 in server.cnf file under your IS. It works! The server.log is generated for each day and it creates a archive file say (server.log.20150129).


    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: IS Log rotation

    Posted Fri January 30, 2015 02:33 PM


  • 8.  RE: IS Log rotation

    Posted Thu February 05, 2015 03:13 PM

    But this one is not compressed, it is still plain text.
    Additionally, there are other LogFiles created by IS in this directory which rotate in the same interval and fashion like stats.log.

    What we are doing in our scheduler is, to detect the already rotated files altogether and put them in a Zip-File on a daily basis via a scheduled flow service.
    After the Zip-File has been successfully created we delete the unpacked log-files to free the space on the file system.

    The schedule is planned on the night in a time frame with lower data volume, but such late that the log rotate is already completed.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods


  • 9.  RE: IS Log rotation

    Posted Mon February 09, 2015 04:36 PM

    Yes, the watt.server.logRotateInterval unit was changed from milliseconds to minutes. So use 1440 now instead of 86400000. IS does not compress the rotated files. You can use a scheduled service or a shell script to do any post-processing you wish on them.

    Regards,
    Michael


    #webMethods
    #Integration-Server-and-ESB