1

Is it possible to rotate a logfile immediately in webMethods - by calling a special method or whatever. I do not want to use third-party software.

Further explanation

I need this rotation for both. The default logfile(s) (e.g. server.log) and custom logfiles.

halfer
  • 19,824
  • 17
  • 99
  • 186
eventhorizon
  • 2,977
  • 8
  • 33
  • 57
  • 3
    Which webMethods product are you asking about? Integration Server? If so, are you asking about rotating the built-in Integration Server log files (such as `./logs/server.log`) on demand, or rotating custom Integration Server log files opened via `com.wm.app.b2b.serverServerAPI.getLogStream(String)`, or some other type of log file? – Lachlan Dowding Sep 23 '15 at 23:00

1 Answers1

1

By default webMethods logs (all components such IS, MWS, Optimize etc) rotate every 24h on midnight. You can change that interval by modifying an extended property.

For IntegrationServer 9.6 and lower it is watt.server.logRotateInterval (in milliseconds).

Please note: The watt.server.logRotateInterval parameter was removed from Integration Server after 8.2 SP2. When it was reintroduced for the following fixes, the scope of the parameter changed so that it affected only the stats.log:

  • IS_9.0_SP1_Core_Fix6
  • IS_9.5_SP1_Core_Fix3
  • IS_9.6_Core_Fix2

    Starting with Integration Server 9.7, this server configuration parameter has been renamed watt.server.statsLogRotateInterval (in minutes instead of milliseconds), but affects only stats.log file as well.

    So I think there is no way to change the log rotate interval. For compressing the old log files I think the best solution would be to write a service that does that and used that service to create a scheduled task (executed daily after midnight).