# Printing logs in JSON format

**URL:** https://discuss.elastic.co/t/printing-logs-in-json-format/183072
**Category:** Logstash
**Created:** [May 28, 2019, 11:03am UTC](https://discuss.elastic.co/t/printing-logs-in-json-format/183072 "2019-05-28T11:03:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sneha\_Prabhu\_Samant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sneha_prabhu_samant/32/46960_2.png) [@Sneha\_Prabhu\_Samant](https://discuss.elastic.co/u/Sneha_Prabhu_Samant)
#### Post date: [May 28, 2019, 11:03am UTC](https://discuss.elastic.co/t/printing-logs-in-json-format/183072/1 "2019-05-28T11:03:30Z")

</div>

In our product we were using JSONEventLayoutV1 for pushing logs in kibana with log4j.properties file. JSONEventLayoutV1 is a class present in net.logstash.log4j package.

Now we want to switch from log4j2.properties. JSONEventLayoutV1 layout is not compatible with log4j2.

There is an open PR in which they are trying to add support of net.logstash.log4j2.JSONEventLayoutV1 for log4j2

> <https://github.com/logstash/log4j-jsonevent-layout/pull/56/files>

Any Idea when this PR is going to get merged.Or is there any other third party jar available?

---

<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: [June 25, 2019, 11:03am UTC](https://discuss.elastic.co/t/printing-logs-in-json-format/183072/2 "2019-06-25T11:03:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
