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.
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.