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?