-
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
Convert the Filebeat auditd module to ECS #10192
Merged
Merged
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
1cd825c
First draft at migrating Filebeat's auditd module to ECS
269dc62
Add missing coercions for process ids
8f4d3fb
Add log file with more exciting content
a1c57a1
Update the user structure to represent what was discussed with @cwurm:
8941175
Turn fields that were defined into aliases...
395b076
Add a bunch of fields that weren't defined, but are being migrated.
ce10c80
Add missing `migration: true` to the fields.yml
1f981f9
Get rid of the `user.group_` workaround.
6770379
Arch goes to host.architecture, not host.os.architecture.
d638458
Document the field migrations in ecs-migration
c33fd94
Changelog
c233180
Define the fields representing the various permissions considered for…
4917ea2
tty and terminal are mapped to user.terminal instead of process.terminal
6482222
Add a few more interesting logs to the main test log
40963c2
Dig up a few more fields to transition.
b45465a
Fix big mistake: module's main fields def must end with opening of th…
b5753d5
Update test files with all of tonight's changes
3c762dc
Update reference documentation vs the auditd/_meta/fields.yml fix
adca8c8
Try getting the fields.yml right
3aa9189
Revert the tty => terminal mapping
b8e7a76
Undo another dubious translation: the local/remote address details
3b9eaf6
2nd changelog for the improvements
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Are we sure
terminal
andtty
will never be both filled? What would happen if they were?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.
Yeah I agree it's not perfect. Here's what I considered:
terminal=
in the rhel7 log file, you'll see "/dev/pts/0" and "pts/0" being used interchangeably.Another thing we could do is append it instead. So if both are set at the same time, you'll get `user.terminal: ["pts0", "/dev/pts/0"] instead of one of the two being overwritten.
Or perhaps we can leave tty where it is for now, only map
terminal
touser.terminal
for now and revisit this later.The last option seems the most straightforward in that it's making sure we don't introduce a bug (the overwrite), while still taking a step towards normalization (at least mapping
terminal
).Finally, the same potential overwrite is happening with the IP addresses. It's hard to tell from the PR body because the fields are sorted alphabetically. But in the pipeline it's more visible, as they're grouped by concern. Address manipulation is starting here