-
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 Filebeat system.auth to ECS #9138
Conversation
2990b72
to
029ebea
Compare
@ruflin This one is not ready for review. But I’d like to discuss some of the caveats. |
Caveats
|
8c79f01
to
7d1481e
Compare
Finishing up on this PR, I'm no longer sure about mapping Thoughts, @ruflin, @MikePaquette? Should |
08d9413
to
6aff55f
Compare
@ruflin Ready for final review. Prior to merging I'd like opinions on this comment, though #9138 (comment). This signature field is no longer mapped to ECS' Also of note: I thought I would use |
@webmat Failures on CI seem to be related. |
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.
Change LGTM but check what happens in the tests.
6aff55f
to
7f199ef
Compare
@ruflin Failure fixed. All tests should be green now. Will merge tomorrow unless something comes up |
@webmat One general comment for ingest pipeline vs copy_to. I think the advantage of using ingest_pipeline is that at one point it can also be applied later again to a raw log line and we it does not depend on a template to be correct. |
- system.auth.hostname => host.hostname - system.auth.pid => process.pid - system.auth.user => user.name - system.auth.program => process.name - system.auth.ssh.ip => source.ip - system.auth.ssh.port => source.port - system.auth.ssh.geoip.* => source.geo.*
Note that there's no log in this format being tested by the integration tests, at this time.
Damn, painless scripting is painful
`'Cannot write to a field alias [system.auth.timestamp].'`
2138aed
to
4cc3167
Compare
Merging without waiting on Darwin. Rest of the Jenkins run is green. |
GitHub messed up the squash message 🤦♂️ |
Before migration to ECS (#9138), we could rely on the presence of specific fields to know the process originating the events, but this is not so reliable after some of these fields have been moved to common places. Add process.name also for known messages so we keep this info in a known place. Also use event.outcome instead of event.action for the result of the logged action. (cherry picked from commit a2e6d3a)
Caveats
host.hostname
and ignoringdevice.hostname
.timezone
field, but should have one. Currently leaving tobeats.timezone
.system.auth.ssh.dropped_ip
should be at least copied tosource.ip
.event.action
? Or should we just copy it, and the presence ofsystem.auth.ssh.dropped_ip
is what indicates it was dropped?group
field set is not part of ECS, at this time. But based onuser.id
anduser.name
semantics, I went with their obviousgroup.*
equivalents. It will be fine ;-)system.auth.ssh.method
, line 29), I would never know that its ECS event is a message about SSH. Added to [WIP] Filebeat module issues found during ECS conversion #9208ECS Fields temporarily defined locally
Renames
TODO
dropped_ip
tosource_ip
via pipelineAssertionError: expected 10 events to compare but got 9
."Cannot write to a field alias [system.auth.groupadd.gid]."
Noticed
sshd
,sudo
,groupadd
anduseradd
. Added to [WIP] Filebeat module issues found during ECS conversion #9208process.name
. They should.message
.sshd
,sudo
,groupadd
anduseradd
. Added to [WIP] Filebeat module issues found during ECS conversion #9208system.auth.ssh.signature
toevent.hash
.