Logstash output pretty json file?


I know, that I can use json_lines codec for file output to generate a one json line per event.

Is there also a possibility to create a pretty json file as file output which is easier readable for humans?

Thanks, Andras

It's not JSON, but the rubydebug codec is intended to be easily readable. If you really want pretty-printed JSON then you could try this.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.