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

[Auditbeat] Namespace system module to system.audit #9499

Merged
merged 3 commits into from
Dec 12, 2018

Conversation

cwurm
Copy link
Contributor

@cwurm cwurm commented Dec 11, 2018

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. now system.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.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/secops

Copy link
Contributor

@tsg tsg left a 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"
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Contributor

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@cwurm cwurm merged commit d72d86d into elastic:feature-auditbeat-host Dec 12, 2018
cwurm pushed a commit to cwurm/beats that referenced this pull request Dec 16, 2018
Namespaces all Auditbeat system module metricsets to `system.audit` to avoid any potential field clashes with Metricbeat.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants