Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #15947 to 7.7: enrich container id from process id #17244

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

exekias
Copy link
Contributor

@exekias exekias commented Mar 25, 2020

Cherry-pick of PR #15947 to 7.7 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)
Copy link
Contributor

@blakerouse blakerouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@exekias exekias merged commit 2206baf into elastic:7.7 Mar 25, 2020
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
* enrich container id from process id

(cherry picked from commit 3aaf027)

Co-authored-by: Fang He <[email protected]>
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