# Default logs in JSON

**URL:** <https://discuss.konghq.com/t/default-logs-in-json/3355>\
**Category:** Questions\
**Created:** [April 22, 2019, 8:56am UTC](https://discuss.konghq.com/t/default-logs-in-json/3355 "2019-04-22T08:56:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![flowdopip](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/flowdopip/32/1704_2.png) [@flowdopip](https://discuss.konghq.com/u/flowdopip)\
**Post date:** [April 23, 2019, 10:24pm UTC](https://discuss.konghq.com/t/default-logs-in-json/3355/2 "2019-04-23T22:24:00Z")

</div>

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 custom-nginx.template

---

_[View the full topic](https://discuss.konghq.com/t/default-logs-in-json/3355)._
