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

Enhancing Log Masking Granularity for Improved Performance and Flexibility #3791

Open
cbabey opened this issue Nov 26, 2024 · 0 comments
Open

Comments

@cbabey
Copy link

cbabey commented Nov 26, 2024

Current Limitation

It would be beneficial to enable log masking at a more granular level, such as at the logger, appender, or module level, rather than applying it globally. Currently, multiple log-masking configurations may be necessary for specific services but are not required universally. However, with the existing implementation in the MI, every log event is processed through all configured log-masking rules. This can lead to performance issues, especially under a high logging load from various services.

Logging is often enabled on a per-API and per-service basis, with distinct appenders for each. Some log-masking rules are only relevant to specific APIs, but the current setup does not allow for isolating masking configurations by service, appender, or logger. Instead, the rules are applied globally, impacting all logs, including system logs.

Suggested Improvement

Introducing the flexibility to configure log masking at the logger or appender level could significantly improve efficiency by reducing the overhead of processing each log through all the configured patterns.

Version

No response

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

1 participant