Is there a way to control the logging format used by filebeat? I'm talking about filebeat's own logging, not the logs I want to process.
For some reason, filebeat is logging to json. I don't have a logging section in my filebeat config, I'm using all the defaults. Yet, the files created in log/ are ndjson. This seems to conflict with the documentation, which states that it should be text (ref).
I tried enabling logging.to_eventlog but then it also logs as json to the event logs... As you can see from this picture, it's really hard to read
I tried it out and couldn't make it work. I validated that my config was taken into account by switching debug logs on and off between attempts, and that part was fine.
I analzyed the documentation site; it doesn't include the json field anymore. It was there in 7.17 but disappeared in 8.0.
I am using 8.18.
Was it moved? Was it removed? Is that an oversight / should I open a bug?
You’re right — logging.json was deprecated in 7.16 and removed in 8.0. Unfortunately, there’s no direct replacement to force plain text logging in 8.x.
It’s not an oversight — it’s part of the breaking changes. If readability is an issue, one option is to pipe the logs through jq or another tool to prettify or reformat them.
Might still be worth opening a feedback issue if it’s affecting usability.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.