elastic / elastic-agent

Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.
Other
124 stars 134 forks source link

Enrich Elastic Defend events with Container ECS fields #3116

Open maxvarm opened 1 year ago

maxvarm commented 1 year ago

Describe the enhancement: We need Elastic Defend integration to be container-aware and enrich process/network events with container.* ECS fields.

Describe a specific use case for the enhancement or feature:

(Communication in Slack with technical details: https://elasticstack.slack.com/archives/CRGSUQC20/p1689602119829169)

What is the definition of done? For Elastic Defend "process" and "network" datasets, "container.name", "container.image", and "container.id" fields are populated with container context.

  1. Deploy Ubuntu 20.04 VM with docker installed
  2. Deploy host-based, Fleet-managed Elastic Agent with Elastic Defend on the VM
  3. Create any docker container, exec into it, run "whoami" command
  4. Observe Elastic Defend "process" event with mentioned container.* fields matching the container
  5. Repeat 3-4 for "network" event
pierrehilbert commented 1 year ago

@kevinlog FYI

nicholasberlin commented 1 year ago

@nick-alayil FYI