-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Auditbeat] Host: Fill top-level host fields #12259
Conversation
Pinging @elastic/secops |
Test failure will be fixed by #12261. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
RootFields: common.MapStr{ | ||
"event": common.MapStr{ | ||
"kind": eventType, | ||
"action": action.String(), | ||
}, | ||
"message": hostMessage(host, action), | ||
}, | ||
MetricSetFields: host.toMapStr(), | ||
} | ||
MetricSetFields: hostFields, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it weren't a breaking change I'd suggest not duplicating values between host.*
and system.host.*
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
Copy fields of `system/host` dataset to `host.*` so those are always filled. Also add `system.audit.host.os.codename` to complete what `add_host_metadata` adds. (cherry picked from commit 5502f4e)
…st fields (elastic#12316) Copy fields of `system/host` dataset to `host.*` so those are always filled. Also add `system.audit.host.os.codename` to complete what `add_host_metadata` adds. (cherry picked from commit f6cebc1)
As of now, the Auditbeat
system/host
dataset puts all its fields undersystem.audit.host.*
, making its output hard to use together with the data usually added by theadd_host_metadata
processor in the top-levelhost
object.With this PR, the dataset copies its fields to
host.*
so those are always filled.Most importantly,
add_host_metadata
does not fillhost.ip
andhost.mac
by default. They will now always be filled by this dataset.I also added
system.audit.host.os.codename
to complete what the processor adds.