Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Oct 24, 2024

Proposed commit message

Reduce logging levels for some log messages in the add_session_metadata processor.

If something goes wrong with the process cache where all, or most, processes are missed, many of these logs would be called for every process event, resulting in a lot of logging spam. These logs have been changed to Debug, which is below the default log level and will not cause log spam.

The logs that have been reduce to Info are in a timer, so they will not cause a lot of spam, but they should be Informational messages

There are better ways to detect if enrichment has failed, so changing the log levels shouldn't negatively affect anything. For example, an Elasticsearch query or alert on missing fields that only this processor will populate will show processes that weren't properly enriched (i.e. process.entry_leader fields).

Checklist

  • My code follows the style guidelines of this project
    - [ ] I have commented my code, particularly in hard-to-understand areas
    - [ ] I have made corresponding changes to the documentation
    - [ ] I have made corresponding change to the default configuration files
    - [ ] I have added tests that prove my fix is effective or that my feature works
    - [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Disruptive User Impact

None


This is an automatic backport of pull request #41409 done by Mergify.

Reduce logging levels for some log messages in the add_session_metadata processor.

If something goes wrong with the process cache where all, or most, processes are missed, many of these logs would be called for every process event, resulting in a lot of logging spam. These logs have been changed to Debug, which is below the default log level and will not cause log spam.

The logs that have been reduce to Info are in a timer, so they will not cause a lot of spam, but they should be Informational messages

There are better ways to detect if enrichment has failed, so changing the log levels shouldn't negatively affect anything. For example, an Elasticsearch query or alert on missing fields that only this processor will populate will show processes that weren't properly enriched (i.e. process.entry_leader fields).

(cherry picked from commit 5941e68)
@mergify mergify bot requested a review from a team as a code owner October 24, 2024 11:56
@mergify mergify bot added the backport label Oct 24, 2024
@mergify mergify bot assigned mjwolf Oct 24, 2024
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 24, 2024
@botelastic
Copy link

botelastic bot commented Oct 24, 2024

This pull request doesn't have a Team:<team> label.

@mjwolf mjwolf enabled auto-merge (squash) October 24, 2024 16:24
@mjwolf mjwolf merged commit 3d1b01d into 8.x Oct 24, 2024
@mjwolf mjwolf deleted the mergify/bp/8.x/pr-41409 branch October 24, 2024 16:50
@khushijain21 khushijain21 mentioned this pull request Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport needs_team Indicates that the issue/PR needs a Team:* label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants