File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j logging file failed to roll in a clustered environment

 
Ingoba Ningthoujam
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have configured RollingFileAppender (with TimeBasedRollingPolicy from log4j extras) in Log4j.properties for monthly rolling in a clustered environment (Websphere with 2 virtual servers(nodes) in single physical system). The log files are getting generated in all the 2 server locations but unfortunately only one node's log file is getting rolled over at the end of a month as mentioned in the Log4J.properties file. Also when I use the same properties file for single server, it works fine and the files are getting rolled over at the end of the month as mentioned there.

So what shall I do so that the Log files get rolled over in an clustered environment consisting of 2 nodes. Please advise me.

Regards,
Ingoba
 
Ingoba Ningthoujam
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please anybody help.
 
Ingoba Ningthoujam
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help it is a critical issue ...
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Log4j doesn't really have anything to do with clustering. Each system (JVM) will be independent and the rolling over of the files on that JVM is controlled by the file size/time and the log4j configurations.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic