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

Disable log forwarding if no samples should be stored #1097

Merged
merged 8 commits into from
May 19, 2022

Conversation

JcolemanNR
Copy link
Contributor

@JcolemanNR JcolemanNR commented May 17, 2022

Description

Resolves #1088

The agent was starting up the log event harvest cycle regardless of whether any events were allowed to be stored. This was harmless in most scenarios, but an edge case was identified where the server provided faster event harvest configuration was reset to default during agent reconnect. This allowed the event harvest to momentarily send log data when the feature had been disabled on an account level.

Author Checklist

Reviewer Checklist

  • Perform code review
  • Pull request was adequately tested (new/existing tests, performance tests)
  • Review Changelog

@JcolemanNR JcolemanNR requested review from vuqtran88 and jaffinito May 17, 2022 23:57
Copy link
Member

@jaffinito jaffinito left a comment

Choose a reason for hiding this comment

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

Discussed with Josh and this looks great!

Copy link
Member

@jaffinito jaffinito left a comment

Choose a reason for hiding this comment

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

Looks great!

@JcolemanNR JcolemanNR merged commit 2260d87 into main May 19, 2022
@JcolemanNR JcolemanNR deleted the jcoleman/fix-log-forwarding-during-reconnect branch June 24, 2022 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Agent can forward logs while reconnecting to collector, even when logs are disabled at account level
2 participants