elastic / elastic/integrations

`service.name` fields missing in some ECS fields

Open
#9,946 1 comment 1 reaction 0 assignees View on GitHub
discuss enhancement Integration:elastic_agent Integration:kubernetes Team:Elastic-Agent Team:obs-ds-hosted-services
Dominant language
Handlebars
Stars
333
Forks
647
Avg merge
2d 17h
Merged PRs (30d)
225

Description

There appears to be a bit of confusion over where `service.name` is defined in the ECS fields.

For example `filebeat` doesn't define it: https://github.com/elastic/integrations/blob/main/packages/elastic_agent/data_stream/filebeat_logs/fields/ecs.yml

but k8s does: https://github.com/elastic/integrations/blob/main/packages/kubernetes/data_stream/container_logs/fields/ecs.yml#L25-L26

This results in filters like `NOT service.name: "filebeat"` generally returning bad results, as any datastreams that don't define `service.name` will ignore the filter.

Are we just missing `service.name` from a few datastreams? Do we need to normalize a bunch of the ECS fields in the log datastreams?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.