nginx error_log as JSON
    Benedikt Heine 
    bebe at bebehei.de
       
    Mon Sep 25 17:29:11 UTC 2023
    
    
  
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
    
    
More information about the nginx
mailing list