How to Generate logs in json format using .yml file


I am uisng LS 5.2.2 version, i am able to generate logs in json format using command line like this

/bin> logstash.bat --debug -f xyz.conf  --log.format json

i want to generate the json logs through control of logstash.yml file, i have added below line in the yml file, but it does not work

log.format : json

and i use this below while running pipeline

/bin> logstash.bat --debug -f xyz.conf

Please let me know the right entry in .yml file, as i have followed the documentation.

I have followed the documentation of LS 5.2.2,not sure if this a bug


Did,anyone has experienced this?
Can we do this via yml file?

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