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

Ability to exclude Authorization header parameters from log #116

Closed
fidgi opened this issue Feb 6, 2022 · 2 comments
Closed

Ability to exclude Authorization header parameters from log #116

fidgi opened this issue Feb 6, 2022 · 2 comments
Labels
agent-nodejs Make available for APM Agents project planning. community

Comments

@fidgi
Copy link

fidgi commented Feb 6, 2022

Hi,

Is there a way to not output request Authorization header parameters (ex: the value of the Authorization Basic parameter) in log depending on the log level ?

Regards

@github-actions github-actions bot added agent-nodejs Make available for APM Agents project planning. community triage labels Feb 6, 2022
@lancegliser
Copy link

There's work on this that's been tracked in #57

@trentm
Copy link
Member

trentm commented Oct 26, 2023

@fidgi Thanks very much for the issue and my apologies for taking so long to reply. This should now be possible as of recently merged #161. However, I still need to get a release out with this. I am targeting next week for a release.

See the full example at https://github.com/elastic/ecs-logging-nodejs/blob/main/packages/ecs-winston-format/examples/redact-fields.js

@trentm trentm closed this as completed Oct 26, 2023
@trentm trentm removed the triage label Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-nodejs Make available for APM Agents project planning. community
Projects
None yet
Development

No branches or pull requests

3 participants