Benedikt Heine via nginx
September 25, 2023 01:30PM
Hi all,

would it be feasible to have the nginx error log in JSON format?

I personally wouldn't mind, if the message emitted by ngx.debug("msg")
is still a big string. If the meta-information would be in JSON, it
would save writing a custom parser for the messages.

I'm currently thinking about parsing the error log into an ELK and it
feels to be a PITA.

For the access log, I've already configured it as escape=json and it
works like a bliss with Elasticsearch and any logpipeline.

I haven't any matching ticket in yet. Do you have any

Kind regards,
nginx mailing list
Subject Author Posted

nginx error_log as JSON

Benedikt Heine via nginx September 25, 2023 01:30PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 142
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 466 on July 09, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready