-
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
[Filebeat] Decode hex values in auditd log messages #14471
Conversation
- changed pipeline from json to yaml so it will be easier to see diffs in the painless script
- Added keys that were listed as escaped in auparse/typetab.h to the list of possible keys that might need to be decoded. - changed convertHexToString in pipeline to use carat notation for control character (tab, delete, new line, etc) - chnaged convertHexToString to return original hex string if one of the character that trigger encoding in the auditd package isn't found. In this case data should probably remain as hex.
Pinging @elastic/siem (Team:SIEM) |
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.
The painless logic looks good to me. This seems like it's ready to come out of draft status. It does need an entry added to the changelog (in CHANGELOG.next.asciidoc
under the bugfix/filebeat section).
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.
LGTM. 🥇 First PR 🍾
This will need to be backported to the 7.x branch after merging. We have a script do help with this (ping me about it). I'll add the needs_backport
label.
I recommend including |
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.
LGTM! Nice first PR, I like the control-character encoding logic you added.
* Convert auditd pipeline to yaml - changed pipeline from json to yaml so it will be easier to see diffs in the painless script * hex decode value fields in auditd module (elastic#14290) - Added keys that were listed as escaped in auparse/typetab.h to the list of possible keys that might need to be decoded. - changed convertHexToString in pipeline to use carat notation for control character (tab, delete, new line, etc) - changed convertHexToString to return original hex string if one of the character that trigger encoding in the auditd package isn't found. In this case data should probably remain as hex. * Add CHANGELOG entry for decoding hex values in auditd module Fixes elastic#14290 (cherry picked from commit f693d2d)
* Convert auditd pipeline to yaml - changed pipeline from json to yaml so it will be easier to see diffs in the painless script * hex decode value fields in auditd module (elastic#14290) - Added keys that were listed as escaped in auparse/typetab.h to the list of possible keys that might need to be decoded. - changed convertHexToString in pipeline to use carat notation for control character (tab, delete, new line, etc) - changed convertHexToString to return original hex string if one of the character that trigger encoding in the auditd package isn't found. In this case data should probably remain as hex. * Add CHANGELOG entry for decoding hex values in auditd module Fixes elastic#14290 (cherry picked from commit f693d2d)
* Convert auditd pipeline to yaml - changed pipeline from json to yaml so it will be easier to see diffs in the painless script * hex decode value fields in auditd module (#14290) - Added keys that were listed as escaped in auparse/typetab.h to the list of possible keys that might need to be decoded. - changed convertHexToString in pipeline to use carat notation for control character (tab, delete, new line, etc) - changed convertHexToString to return original hex string if one of the character that trigger encoding in the auditd package isn't found. In this case data should probably remain as hex. * Add CHANGELOG entry for decoding hex values in auditd module Fixes #14290 (cherry picked from commit f693d2d)
convert auditd pipeline to yaml and decode hex values listed in auditd source code.
Fixes #14290.