-
Notifications
You must be signed in to change notification settings - Fork 598
santa: add process.entity_id constructed from agent.id, pid and pidversion #3373
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,14 @@ processors: | |
| - '\[%{TIMESTAMP_ISO8601:timestamp}\] %{NOT_SEPARATOR:log.level} santad: action=%{NOT_SEPARATOR:santa.action}\|mount=%{NOT_SEPARATOR:santa.disk.mount}?\|volume=%{NOT_SEPARATOR:santa.disk.volume}\|bsdname=%{NOT_SEPARATOR:santa.disk.bsdname}?(\|fs=%{NOT_SEPARATOR:santa.disk.fs})?(\|model=%{NOT_SEPARATOR:santa.disk.model}?)?(\|serial=%{NOT_SEPARATOR:santa.disk.serial}?)?(\|bus=%{NOT_SEPARATOR:santa.disk.bus}?)?(\|dmgpath=%{NOT_SEPARATOR:santa.disk.dmgpath}?)?(\|appearance=%{TIMESTAMP_ISO8601:santa.disk.appearance})?' | ||
| pattern_definitions: | ||
| NOT_SEPARATOR: '[^\|]+' | ||
| - set: | ||
| field: process.entity_id | ||
| value: "{{{process.pid}}}-{{{santa.pidversion}}}" | ||
| if: "ctx.process?.pid != null && ctx.santa?.pidversion != null" | ||
| - set: | ||
| field: process.entity_id | ||
| value: "{{{agent.id}}}-{{{process.entity_id}}}" | ||
| if: "ctx.agent?.id != null && ctx.process?.entity_id != null" | ||
|
Comment on lines
+23
to
+26
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure who would set
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The previous set processor may have. This part prepends the agent.id if it's available and needed (the null check is for the "if needed" part of that).
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. eeks missed it :) This enriches the existing field. Isn't it worth having
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that will be available independently. |
||
| - date: | ||
| field: process.start | ||
| target_field: process.start | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.