elastic / elastic/elastic-agent

Support agent.features.include_tags_in_events - attach agent tags to collected events

Open
#15,375 4 comments 0 reactions 1 assignee Claimed by @samuelvl View on GitHub
Team:Elastic-Agent Team:Elastic-Agent-Control-Plane
Dominant language
Go
Stars
275
Forks
264
Avg merge
1d 23h
Merged PRs (30d)
312

Description

## Summary

Part of the "Agent tags propagation" design (related issue: elastic/kibana#271551). Fleet agent tags are not currently forwarded into the events (logs, metrics, traces) collected by the agent, making them unusable for filtering/dashboarding. This issue tracks the agent-side change needed to close that gap.

## Proposed change

- Support the new policy field `agent.features.include_tags_in_events` (boolean, injected by Fleet Server, see fleet-server issue).
- When enabled, add a global processor that sets tags on outgoing events using the value from `agent.tags` (also injected by Fleet Server).
- `agent.features.include_tags_in_events` and `agent.tags` should also be passed through to Endpoint so it can apply the same tagging to its own data.

## Related

- Related issue: elastic/kibana#271551
- Kibana issue: elastic/kibana#276433
- Fleet Server issue: elastic/fleet-server#7321

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.