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 have been able to format request logs i.e access logs as json using either the
filelog
plugin or nginx log formatting directives, but is there any way to configure kong to output its own logs and/or plugin logs (logs that don't come from nginx) as json. I have not found any documentation on this, nor have i found any issues about it.Our goal is to make it easier to parse logs in our monitoring infrastructure.
Beta Was this translation helpful? Give feedback.
All reactions