nginx-json-log icon indicating copy to clipboard operation
nginx-json-log copied to clipboard

How to write the error_log in json format ?

Open ManjunathMuniyapla opened this issue 1 year ago • 2 comments

We have a option to format the access_logs only in json format and send it to ELK or Opensearch directly without parsing it. and how about error logs , error logs are also equally important as access logs and to be pushed to ELK or Opensearch right ? if possible if you can make this happen it will be a great help for many people

Thanks Manjunath

ManjunathMuniyapla avatar Jan 31 '24 23:01 ManjunathMuniyapla

How do you use this project?

fooinha avatar Jan 31 '24 23:01 fooinha

Hi Thanks for replying,

we are in the process of migrating our log workload from splunk to ELK and we have one application running on nginx , Our tech team decided to generate the logs in json format and push to Elasticsearch by skipping the parsing process through logstash. Now i need both access and erros logs in json format as both are important This is my use case .

ManjunathMuniyapla avatar Jan 31 '24 23:01 ManjunathMuniyapla