How to convert Nginx error.log to json format

1.4k Views Asked by At

Is there a way to convert the error.log in Nginx to json? I need to ship the logs to an external log viewer, to do that I need to convert the error.log to json.

1

There are 1 best solutions below

3
36ve On

Using filebeat may be an alternative depending on were you want to ship your logs (see https://www.elastic.co/guide/en/beats/filebeat/current/configuring-output.html)