Log4j logging directly to elasticsearch server
问题 I'm a bit confused on how can I put my log entries directly to elasticsearch (not logstash). So far I found a few appenders ( log4j.appender.SocketAppender , log4j.appender.server etc.) that allow to send logs to remote host and also ConversionPattern possibility that seems to allow us to convert logs to "elastic-friendly" format, but this approach looks freaky... or do I mistake? Is this the one way to send logs to elastic ? So far I have a such config: log4j.rootLogger=DEBUG, server log4j