Filebeat does not preserve log.level
field of the event #12040
Closed
Description
opened on May 3, 2019
After switching to Elastic Cloud 7 we changed our logging schema to conform to Elastic Common Schema. Specifically, the original log level from the application goes to log.level
instead of level
(according to https://www.elastic.co/guide/en/ecs/current/ecs-log.html).
But looks like Filebeat completely replaces log
object with the following and doesn't leave log.level
.
log.file.path
log.offset
- Version: filebeat 7.0.1, elastic cloud 7.0.1
- Operating System: debian stretch
- Steps to Reproduce:
- Log event with
log.level
, e.g.
{ "log": { "level": "DEBUG" } }
- Find this document in ES - no
log.level
inside.
{ "log": { "offset": 123456, "file": { "path": "/home/some/path.log" } } }
- Log event with
Activity