Good day, I have the following task. There are several server applications running on different hosts (Solaris OS) in one subnet. Each of them writes logs locally using log4j RollingFileAppender. There is a task to create centralized logs storage of all these logs. There are 2 main solutions that came to my mind. 1. Mount logs directory by NFS and write logs there. 2. Reconfigure log4j to send logs to syslogd
I am interested in 1st option. But some questions appear. How to provide reliability in case if nfs brakes (timeout or network issues) There are 2 points: 1. All applications should not be affected by nfs crash. 2. Logs should not be lost in case of nfs crash. To provide this i see variant: -Write logs in 2 threads (locally and to nfs) and then periodically synchronize them. (Question how? ) -Alternate failover way to save logs (e.g. in case of nfs crash write them locally and then copy them to nfs) (Question how remains =)) ) Do you have any valueble ideas? Thanks in advance, Ilya -- View this message in context: http://www.nabble.com/Reliable-logging-via-log4j-and-NFS-tp24499266p24499266.html Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org