# Elasticsearch logs in JSON?

**URL:** <https://discuss.elastic.co/t/elasticsearch-logs-in-json/18257>\
**Category:** Elasticsearch\
**Created:** [June 23, 2014, 8:21am UTC](https://discuss.elastic.co/t/elasticsearch-logs-in-json/18257 "2014-06-23T08:21:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin\_Clarke](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@Robin\_Clarke](https://discuss.elastic.co/u/Robin_Clarke)\
**Post date:** [June 23, 2014, 8:21am UTC](https://discuss.elastic.co/t/elasticsearch-logs-in-json/18257/1 "2014-06-23T08:21:32Z")

</div>

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](mailto: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).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [June 23, 2014, 11:03am UTC](https://discuss.elastic.co/t/elasticsearch-logs-in-json/18257/2 "2014-06-23T11:03:53Z")

</div>

Have you checked [GitHub - logstash/log4j-jsonevent-layout: A prefab PatternLayout for log4j that generates logstash json\_event formatted data](https://github.com/logstash/log4j-jsonevent-layout) ?

Jörg

On Mon, Jun 23, 2014 at 10:21 AM, Robin Clarke [robin13@gmail.com](mailto: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](mailto: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)  
> [https://groups.google.com/d/msgid/elasticsearch/fe031573-c87d-4ad3-bf1f-9e561cd3dfa1%40googlegroups.com?utm\_medium=email&utm\_source=footer](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](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](mailto: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](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](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:20am UTC](https://discuss.elastic.co/t/elasticsearch-logs-in-json/18257/3 "2017-07-06T01:20:37Z")

</div>


