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 can't create ECS-compliant parent fields #29874

Closed
adriansr opened this issue Jan 17, 2022 · 2 comments · Fixed by #30727
Closed

add_process_metadata can't create ECS-compliant parent fields #29874

adriansr opened this issue Jan 17, 2022 · 2 comments · Fixed by #30727
Assignees

Comments

@adriansr
Copy link
Contributor

A common usage of the add_process_metadata processor:

- add_process_metadata:
      match_pids: [some_ppid_field]
      target: process.parent

One would expect that the following fields are created:

"process": {
  "parent": {
    "pid": "1234"
    "name": "parent_process",
    [...]
  }
}

However, the add_process_metadata processor always nests fields in a "process" group inside the given target:

"process": {
  "parent": {
    "process": {
      "pid": "1234"
      "name": "parent_process",
      [...]
    }
  }
}

... which leads to non-ECS compliant fields process.parent.process.name instead of process.parent.name.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@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
3 participants