Logstash and Log4j
November 11, 2014
I wanted to log from a log4j process through to Logstash, and have the logging stored in Elastic search. This can be done using the code at https://github.com/logstash/log4j-jsonevent-layout
To make things easy for my test, I put the source code for net.logstash.log4j.JSONEventLayoutV1
and net.logstash.log4j.data.HostData
into my source tree.
I then …