I want all my applications log to be centralized (ideally in near real-time). We will use a Log4 Appender. Which one should I use:
Which one are you using?
Depends on your requirements. Logging to a queue (as in JMS) gives you the most flexibility of your options as your log operation can return as soon as the log message has been written to the queue. You are then free to have another process take those log messages off the queue and write them to your preferred logging store (database, file system, ...).
The (slight) downside is your log messages will lag slightly behind the system that is logging, but this is almost always the case, even with file-based logging.
This may be overkill but have you looked at Splunk? For Java apps, I've used either Log4J or SLF4J to log to files, then Splunk can aggregate the logs and make them searchable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With