• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Log File Rotation

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Need some help, on Log File Rotation.
Does Websphere have a facility to rotate the standard out log file. (My environment is Webpshere 4.0.6, on Sun Solaris 8, Ready to upgrade this environment to 4.0.7, in few days).
Stdout.log file is getting huge over time, and the environment is live. We need to rotate the log file, for all practical reasons.
We have used a UNIX script to copy the file and then make the file size 0, but there is loss of some info between the copy and reducing the file size. There could be critical info that could be lost in this fraction of time. We would like to avoid the same.
Can anyone please point out an existing facility in Websphere to rotate the log file, or if anyone has followed a different solution, can you please share it with me.
Regards
Naveen Kumar
 
Naveen Kumar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I found the solution for log file rotation myself.
In future anyone wants to use this feature then this might help.
This functionality of log file rotation is provided by WebSphere itself, and this solution is only for 4.x releases of websphere, (This feature might be available in different form in version 5.x, I am yet to explore).
1. Check the file <WAS_HOME>/properties/logging.properties
2. The details of each log file that can be configured for rotation is provided in the comments.
3. The Application log file (default stdout.log), cannot be rotated, but there is a facility to direct all the application to a different file and this file can be configured for rotation.
4. Set the following parameters to true, and configure the remaining parameters.
com.ibm.ws.ras.SystemOutLogEnable
com.ibm.ws.ras.SystemErrLogEnable
This should solve the problem of log rotation.
Note : This feature is not available in all 4.0.x versions, I have checked for version 4.0.5 and it is available.
Somehow this feature does not work properly in Windows OS, but works very well in Solaris 8 OS.

Regards
Naveen Kumar
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic