Skip to content

Cherry-pick #15947 to 7.x: enrich container id from process id#17235

Merged
exekias merged 1 commit intoelastic:7.xfrom
exekias:backport_15947_7.x
Mar 25, 2020
Merged

Cherry-pick #15947 to 7.x: enrich container id from process id#17235
exekias merged 1 commit intoelastic:7.xfrom
exekias:backport_15947_7.x

Conversation

@exekias
Copy link
Copy Markdown
Contributor

@exekias exekias commented Mar 25, 2020

Cherry-pick of PR #15947 to 7.x branch. Original message:

Type of change

  • Enhancement

What does this PR do?

This PR enables add process metadata to enrich container id in Kubernetes environment by cgroup using process id.

Why is it important?

Include important metadata of the container id in the Kubernetes environment, which beats don't have this ability yet.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works

Author's Checklist

  • [ ]

How to test this PR locally

Deploy Auditbeat in minikube with the include_cid set to true. Deploy an sshd server in minikube. After the Auditbeat is running, ssh into the sshd server, which will trigger an Auditbeat event. See if the event coming from the sshd container is enriched with container id cid

Related issues

Closes #14967

Use cases

Screenshots

image

Logs

* enrich container id from process id

(cherry picked from commit 3cb957d)
@exekias exekias merged commit 507feea into elastic:7.x Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants