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

add_process_metadata - process.env enrichment not working #36469

Closed
andrewkroh opened this issue Aug 30, 2023 · 1 comment · Fixed by #36471
Closed

add_process_metadata - process.env enrichment not working #36469

andrewkroh opened this issue Aug 30, 2023 · 1 comment · Fixed by #36471
Assignees

Comments

@andrewkroh
Copy link
Member

When restricted_fields: true is enabled then the process.env.* fields should be populated. But that is not working.

    - add_process_metadata:
        match_pids: [process.pid]
        overwrite_keys: true
        ignore_missing: true
        cgroup_prefixes: []
        cgroup_regex: '([0-9a-f]{64})(\.scope)?$'
        restricted_fields: true

The code that collects the metadata does not fetch any environment variables.

r := processMetadata{
name: info.Name,
args: info.Args,
title: strings.Join(info.Args, " "),
exe: info.Exe,
pid: info.PID,
ppid: info.PPID,
startTime: info.StartTime,
username: username,
userid: userid,
}

@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants