# Custom Access logs format

**URL:** <https://discuss.konghq.com/t/custom-access-logs-format/4580>\
**Category:** Questions\
**Tags:** kubernetes\
**Created:** [October 7, 2019, 3:40pm UTC](https://discuss.konghq.com/t/custom-access-logs-format/4580 "2019-10-07T15:40:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jeremyjpj0916](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/jeremyjpj0916/32/1388_2.png) [@jeremyjpj0916](https://discuss.konghq.com/u/jeremyjpj0916)\
**Post date:** [October 7, 2019, 3:55pm UTC](https://discuss.konghq.com/t/custom-access-logs-format/4580/2 "2019-10-07T15:55:42Z")

</div>

I know there is a way to log it as a JSON structure:

> [@Default logs in JSON](https://discuss.konghq.com/t/default-logs-in-json/3355/2):
>
> Solved, i´ve created a new custom-nginx.template with this: http { log\_format json\_combined escape=json ‘{’ ‘“time\_local”:"$time\_iso8601",’ ‘“remote\_addr”:"$remote\_addr",’ ‘“request”:"$request",’ ‘“status”: “$status”,’ ‘“request\_time”:"$request\_time",’ ‘“connection\_requests”:"$connection\_requests",’ ‘“http\_user\_agent”:"$http\_user\_agent"’ ‘}’; access\_log ${{PROXY\_ACCESS\_LOG}} json\_combined; include ‘nginx-kong-template.conf’; } and on start do kong start -c kong.yml --nginx-conf cu…

`json_combined` arg

Not sure if thats what you were thinking about doing.

---

_[View the full topic](https://discuss.konghq.com/t/custom-access-logs-format/4580)._
