How to configure filebeat log format to human readable instead of json?

With -e option, Filebeat version 7.9.1 will output logs in this human-readable way.
e.g.

2023-06-28T11:51:10.059 + 0800 INFO [publisher] pipeline/retry.go: 223 done

But filebeat version 8.8.1 does not, outputs the log in json format.
e.g.

{"log.level":"info","@timestamp":"2023-06-28T11:55:30.869+0800","log.logger":"monitoring","log.origin":{"file.name":"log/log.go","file.line":196},"message":"Uptime: 908.561801ms","service.name":"filebeat","ecs.version":"1.6.0"}

How can I configure it?

version 7.9.1 is EOL and no longer supported. Please upgrade ASAP.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

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