Skip to content
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

Security Audit includes HTTP method for requests #37322

Merged

Conversation

albertzaharovits
Copy link
Contributor

Adds another field ("request.method") to the structured logfile audit. This field is present for all events associated with a REST request (not a transport request) and the value is one of GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH, TRACE and CONNECT.

Closes #29765

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security

Copy link
Member

@jaymode jaymode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@albertzaharovits
Copy link
Contributor Author

albertzaharovits commented Jan 13, 2019

@ycombinator , does merging this require tweaking in elastic/beats#8852 ?

@albertzaharovits albertzaharovits merged commit 6fd57d9 into elastic:master Jan 13, 2019
@albertzaharovits albertzaharovits deleted the http_method_in_audit_log branch January 13, 2019 13:26
albertzaharovits added a commit that referenced this pull request Jan 13, 2019
Adds another field, named "request.method", to the structured logfile audit.
This field is present for all events associated with a REST request (not a
transport request) and the value is one of GET, POST, PUT, DELETE, OPTIONS,
HEAD, PATCH, TRACE and CONNECT.
@ycombinator
Copy link
Contributor

ycombinator commented Jan 13, 2019

Thanks for the ping here @albertzaharovits.

Short answer: Yes, Filebeat will want to make sure it parses and indexes this new field as well.

Longer answer, more as an FYI: I'm thinking of completely overhauling elastic/beats#8852 as I'm not sure the current approach is right (see elastic/beats#8852 (comment)). Depending on where this lands, adding new fields to the structured log may or may not need changes on the Filebeat going forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants