-
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] Namespace system module to system.audit #9499
[Auditbeat] Namespace system module to system.audit #9499
Conversation
Pinging @elastic/secops |
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.
@@ -29,6 +29,7 @@ import ( | |||
const ( | |||
moduleName = "system" | |||
metricsetName = "host" | |||
namespace = "system.audit.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.
My concern is that even with #8941 merged the dataset name here will still be system.host
but should be system.audit.host
. Do you want to keep it host
as the name for the config?
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.
Maybe we need a way to specify a custom dataset name? {module}.{metricset}
will be weird for Auditbeat:
- auditd will be
auditd.auditd
- file_integrity will be
file_integrity.file
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.
++ on introducing a config / init option for it.
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.
+1. I'd say we merge this PR and make another one for the dataset?
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.
SGTM
c367ebc
to
a5fdb09
Compare
Namespaces all Auditbeat system module metricsets to `system.audit` to avoid any potential field clashes with Metricbeat.
So far, the system module has been using the top-level
system
object to store many of its fields (e.g.system.user.group.name
), setting it up for potential clashes with the Metricbeat system module, which occupies the same top-level object.This change namespaces all metricsets to the
system.audit
object (e.g. nowsystem.audit.user.group.name
), thus avoiding any potential field clashes - now and in the future.Auditbeat and Metricbeat are still using the same module and metricset names in their configurations.