Skip to content

Filebeat does not preserve log.level field of the event #12040

Closed
@flexoid

Description

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:
    1. Log event with log.level, e.g.
    { 
      "log":  { 
        "level": "DEBUG" 
      }
    }
    1. Find this document in ES - no log.level inside.
      { 
        "log":  { 
          "offset": 123456,
          "file": {
            "path": "/home/some/path.log"
          } 
        }
      }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions