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

Document logging filter #6231

Closed
skearns64 opened this issue Feb 12, 2016 · 2 comments
Closed

Document logging filter #6231

skearns64 opened this issue Feb 12, 2016 · 2 comments

Comments

@skearns64
Copy link

#5036 added the ability to filter auth headers from the logs, but I don't believe it allows the admin to customize what gets filtered.

This issue tracks allowing the admin to configure which headers are filtered out from the logs (e.g. as a setting in the kibana.yml).

If this is already possible, then :) and this issue can track adding the mechanism to the docs.

@spalger
Copy link
Contributor

spalger commented Feb 12, 2016

This is actually possible. The logging.filter setting can be set to keys that should be removed from anything that gets logged. The filtering of the authorization header is accomplished by the default setting:

--logging.filter.authorization=remove

This causes the "authorization" key to be removed from any object logged by kibana. No matter where it appears, the logger will recurse through nested objects and remove any authorization key.

@spalger spalger changed the title Allow filtering specific request headers from the log Document logging filter Feb 12, 2016
@palecur
Copy link

palecur commented Mar 7, 2016

PR #6451 is up to address this for 4.5 and 4.3. PR #6452 backports the relevant bit to 4.4.

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

No branches or pull requests

5 participants