Log4j directly to elastic search


(Dan Diephouse) #1

Perhaps I haven't spotted it, but is there a way to post log messages
directly to elasticsearch from log4j? We have a whole flume setup
working, but that's really annoying to set up for people who are
writing code on their local machines. I figured if I could just have
log4j write directly to elasticsearch, we could make things easier for
our devs.


(Shay Banon) #2

No, there isn't, but, an elasticsearch log4j appender would be cool. if you write one, I think it can even be in the base jar of "core" elasticsearch (as the code will probably be simple).
On Thursday, March 17, 2011 at 9:38 PM, Dan Diephouse wrote:

Perhaps I haven't spotted it, but is there a way to post log messages
directly to elasticsearch from log4j? We have a whole flume setup
working, but that's really annoying to set up for people who are
writing code on their local machines. I figured if I could just have
log4j write directly to elasticsearch, we could make things easier for
our devs.


(system) #3