Elasticsearch logs in JSON?


(Robin Clarke) #1

Is there any way to configure Elasticsearch to output its logs in JSON
(custom log format, or configuration option)? This would make it much
easier to import the logs via logstash...

Cheers,
-Robin-

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/fe031573-c87d-4ad3-bf1f-9e561cd3dfa1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Jörg Prante) #2

Have you checked https://github.com/logstash/log4j-jsonevent-layout ?

Jörg

On Mon, Jun 23, 2014 at 10:21 AM, Robin Clarke robin13@gmail.com wrote:

Is there any way to configure Elasticsearch to output its logs in JSON
(custom log format, or configuration option)? This would make it much
easier to import the logs via logstash...

Cheers,
-Robin-

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/fe031573-c87d-4ad3-bf1f-9e561cd3dfa1%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/fe031573-c87d-4ad3-bf1f-9e561cd3dfa1%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFQPr-17AonCKW313cdja92w4iPW_QrCewkM_ccKDf_EQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3