Skip to content

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

Merged
cwurm merged 3 commits intoelastic:feature-auditbeat-hostfrom
cwurm:namespace_system_audit
Dec 12, 2018
Merged

[Auditbeat] Namespace system module to system.audit#9499
cwurm merged 3 commits intoelastic:feature-auditbeat-hostfrom
cwurm:namespace_system_audit

Conversation

@cwurm
Copy link
Copy Markdown
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
Copy Markdown
Contributor

Pinging @elastic/secops

Copy link
Copy Markdown
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.

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

SGTM

@cwurm cwurm force-pushed the namespace_system_audit branch from c367ebc to a5fdb09 Compare December 12, 2018 19:55
@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