<p>I do a lot of work in the grid and HPC space and one of the biggest challenges we have with a system distributed across hundreds (or in some case thousands) of servers is analysing the log files.  </p>

<p>Currently log files are written locally to the disk on each blade but we could also consider publishing logging information using for example a UDP Appender and collect it centally.</p>

<p>Given that the objective is to be able to identify problems in as close to real time as possible, what should we do?</p>

[{'answer_id': 35298, 'author': 'John Meagher', 'author_id': 3535, 'author_profile': 'https://Stackoverflow.com/users/3535', 'pm_score': 2, 'selected': False, 'text': "<p>First, synchronize all clocks in the system using NTP.</p>\n\n<p>Second, if you are collecting the logs in a single location (like the UDP appender you mention) make sure the logs have enough information to actually help.  I would include at least the server that generated the log, the time it happened, and the message.  If there is any sort of transaction id, or job id type concept, include that also.  </p>\n\n<p>Since you mentioned a UDP Appender I am guessing you are using log4j (or one of it's siblings).  Log4j has an MDC class that allows extra information to be passed along through a processing thread.  it can help collect some of the extra information and pass it along.  </p>\n"}, {'answer_id': 35937, 'author': 'Vagnerr', 'author_id': 3720, 'author_profile': 'https://Stackoverflow.com/users/3720', 'pm_score': 0, 'selected': False, 'text': '<p>Are you using Apache? If so you could have a look at <a href="http://www.schlossnagle.org/~george/mod_log_spread/" rel="nofollow noreferrer">mod_log_spread</a> Though you may have too big an infrastructure to make it maintainable. The other option is to look at "broadcasting" or "multicasting" your log messages and having dedicated logging servers subscribing to those feeds and collating them</p>\n'}]
['https://Stackoverflow.com/questions/35292', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3305/']