Error_log format (json) or suggestions?

Pablo Fischer pablo at pablo.com.mx
Fri Aug 10 03:00:33 UTC 2018


Howdy,

I've a project that I need to send the error log but it only accepts
json format (I know I know), in the past I used logstash but right now
that is not an option so looking to see if anyone has done any patch
or ways to go around it.

Ideally this should either be any of:

a) Log to current error_log as json (through a patch)
b) Or log to the current error_log in the current format and have a
separate process that processes it and creates a new log file with the
json format (we are fine with ending with two files)

Any ideas?

Thanks!
-- 
Pablo


More information about the nginx mailing list