Is there any way to configure kong to output all logs in json #14387
-
I have been able to format request logs i.e access logs as json using either the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think this stackoverflow thread gives good answers to this question: https://stackoverflow.com/questions/71253184/kong-structured-json-logs You could check file-log plugin, or either use |
Beta Was this translation helpful? Give feedback.
-
@StarlightIbuki stack overflow was the first place I looked, and the file log plugin and log directive do format the http logs as mentioned in my original question. However other logs from Kong such as ones coming from plugins, and kongs startup logs are still plain text. I would like to format all logs as json. Not just the request logs. |
Beta Was this translation helpful? Give feedback.
I think this stackoverflow thread gives good answers to this question: https://stackoverflow.com/questions/71253184/kong-structured-json-logs
You could check file-log plugin, or either use
nginx_http_log_format
of nginx