# Write logs as JSON

**URL:** https://discuss.konghq.com/t/write-logs-as-json/325
**Category:** Questions
**Created:** [January 2, 2018, 9:56am UTC](https://discuss.konghq.com/t/write-logs-as-json/325 "2018-01-02T09:56:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ugolas](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/ugolas/32/154_2.png) [@ugolas](https://discuss.konghq.com/u/ugolas)
#### Post date: [January 2, 2018, 9:56am UTC](https://discuss.konghq.com/t/write-logs-as-json/325/1 "2018-01-02T09:56:02Z")

</div>

Hi,

Is there a way to change access/error logs to JSON format?

I’ve tried using log\_format, but `escape=json` is supported in nginx only in 1.11.8 (Is there a roadmap for upgrading openResty, btw?)

Thanks!

---

<div class="post-metadata">

### Author: ![thibaultcha](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/thibaultcha/32/340_2.png) [@thibaultcha](https://discuss.konghq.com/u/thibaultcha)
#### Post date: [January 2, 2018, 9:01pm UTC](https://discuss.konghq.com/t/write-logs-as-json/325/2 "2018-01-02T21:01:42Z")

</div>

Hi,

We are planning to bump OpenResty to the latest 1.13.6.1 for the upcoming 0.13 release, which thus includes the 1.13.6 NGINX core.

---

<div class="post-metadata">

### Author: ![ugolas](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/ugolas/32/154_2.png) [@ugolas](https://discuss.konghq.com/u/ugolas)
#### Post date: [January 3, 2018, 6:49am UTC](https://discuss.konghq.com/t/write-logs-as-json/325/3 "2018-01-03T06:49:58Z")

</div>

Thanks, looking forward to it !

---

<div class="post-metadata">

### Author: ![QiQe\_Garbi](https://avatars.discourse-cdn.com/v4/letter/q/b5a626/32.png) [@QiQe\_Garbi](https://discuss.konghq.com/u/QiQe_Garbi)
#### Post date: [May 16, 2018, 4:21pm UTC](https://discuss.konghq.com/t/write-logs-as-json/325/4 "2018-05-16T16:21:23Z")

</div>

it would be great configure a json format through environment variables for docker-kong.  
Those json can easily passed to Elasticsearch later for indexing.  
Are you planning to do something like that?
