-
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
Rename file integrity fields #5995
Rename file integrity fields #5995
Conversation
CHANGELOG.asciidoc
Outdated
@@ -26,6 +26,7 @@ https://github.com/elastic/beats/compare/v6.0.0-beta2...master[Check the HEAD di | |||
- Split the audit.kernel and audit.file metricsets into their own modules | |||
named auditd and file_integrity, respectively. This change requires | |||
existing users to update their config. {issue}5422[5422] | |||
- Renamed file_integrity module fields. |
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.
can you add teh PR number?
@@ -2144,91 +2144,89 @@ Image labels. | |||
These are the fields generated by the file_integrity module. | |||
|
|||
|
|||
[float] | |||
=== `event.action` |
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.
Interesting field, we should discuss this more.
@@ -21,7 +21,7 @@ const ( | |||
bucketName = "file.v1" | |||
|
|||
// Use old namespace for data until we do some field renaming for GA. | |||
namespace = "audit.file" | |||
namespace = "." |
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.
I assume that means it ignores the namespace?
switch e.Namespace { | ||
case ".": | ||
// Add fields to root. | ||
b.Fields.DeepUpdate(e.MetricSetFields) |
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.
Here we go :-)
@andrewkroh I think this PR needs a make fmt |
This creates three groups of fields in the file integrity module `event`, `hash`, and `file`. It also changes `dataset.module` to `event.module` for all modules. elastic#5423
27573bd
to
0fa17bd
Compare
Updated the CHANGELOG and fmt'ed Metricbeat. |
file.mode and file.gid aren't populated for Windows.
- name: path | ||
type: text | ||
description: The path to the file. | ||
multi_fields: |
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.
Nice
This creates three groups of fields in the file integrity module
event
,hash
, andfile
.It also changes
dataset.module
toevent.module
for all modules.See data.json files for sample events.