-
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
Teach elasticsearch/audit fileset to parse out some more fields #10137
Teach elasticsearch/audit fileset to parse out some more fields #10137
Conversation
Pinging @elastic/stack-monitoring |
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. Will need a rebase.
"field": "message", | ||
"pattern_definitions": { | ||
"ES_TIMESTAMP": "\\[%{TIMESTAMP_ISO8601:elasticsearch.audit.timestamp}\\]", | ||
"ES_NODE_NAME": "(\\[%{DATA:elasticsearch.node.name}\\])?", |
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 quite like what you did here with the pattern definitions. It makes the grok pattern more readable.
… out some more fields (#10271) * Teach elasticsearch/audit fileset to parse out some more fields (#10137) * Be more lenient in parsing node name * Parse out elasticsearch.audit.realm * Adding CHANGELOG entry * Parse out elasticsearch.audit.roles * Parse out elasticsearch.audit.indices * Parse out optional sub-action * Regenerating generated files * Regenerating generated files (cherry picked from commit 210460e) * Regenerating generated files * Fixing types from array => keyword
… out some more fields (#10484) Cherry-pick of PR #10137 to 6.6 branch. Original message: Resolves #10134. This PR teaches the `elasticsearch/audit` fileset to parse out a few more fields, viz: * `elasticsearch.audit.realm`, * `elasticsearch.audit.roles` * `elasticsearch.audit.indices` It also teaches the fileset to parse `elasticsearch.audit.action` values that themselves contain `[` and `]` delimiters around sub-actions, e.g. `action=[indices:data/read/search[free_context]]`.
…o parse out some more fields (elastic#10484) Cherry-pick of PR elastic#10137 to 6.6 branch. Original message: Resolves elastic#10134. This PR teaches the `elasticsearch/audit` fileset to parse out a few more fields, viz: * `elasticsearch.audit.realm`, * `elasticsearch.audit.roles` * `elasticsearch.audit.indices` It also teaches the fileset to parse `elasticsearch.audit.action` values that themselves contain `[` and `]` delimiters around sub-actions, e.g. `action=[indices:data/read/search[free_context]]`.
Resolves #10134.
This PR teaches the
elasticsearch/audit
fileset to parse out a few more fields, viz:elasticsearch.audit.realm
,elasticsearch.audit.roles
elasticsearch.audit.indices
It also teaches the fileset to parse
elasticsearch.audit.action
values that themselves contain[
and]
delimiters around sub-actions, e.g.action=[indices:data/read/search[free_context]]
.