Skip to content

Generate and validate ecs@mapping component template. #2585

@Mpdreamz

Description

@Mpdreamz

Related to #2584 the official ecs mappings are still hard mappings while Elasticsearch ships with ecs@mapping which is primarily conventions based mapping for ECS.

See: https://github.com/elastic/elasticsearch/blob/3011ff68ffe3e57111a3bb01492c956567ab7c8b/x-pack/plugin/core/template-resources/src/main/resources/ecs%40mappings.json#L4

and

https://www.elastic.co/observability-labs/blog/future-proof-your-logs-with-ecs-mappings-template

Questions:

  • Does this repo validate the ecs@mapping?
    • this doesn't get updated with every release.
  • Should this repo start generating an ecs@mapping ?
  • If not should it generate a more explicit alternative (that does enforce types for instance?).

Do beats, agent, integrations now rely on ecs@mappings or are they using the component templates this repo generates?

The component templates now sit at 2200+ fields which is tad much for each backing index in a datastream when most usecases do not use all fields.

Tagging a few folks who I know might have some thoughts:

@eyalkoren @felixbarny @gregkalapos @P1llus @trisch-me @andrewkroh @mjwolf

Feel free to ignore my @mention or forward to someone else who may have the answer(s)? 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions