Welcome! Log In Create A New Profile

Advanced

nginx error_log as JSON

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 trac.nginx.org yet. Do you have any
thoughts?

Kind regards,
Benedikt
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
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: 224
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready