-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[beats] reduce log noise #34460
[beats] reduce log noise #34460
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
@@ -70,6 +73,14 @@ func (m *MetricSet) Fetch(r mb.ReporterV2) error { | |||
|
|||
clusterUUID, err := m.getClusterUUID() | |||
if err != nil { | |||
if errors.Is(err, beat.ErrClusterUUID) { | |||
if time.Since(m.lastClusterUUIDMessageTimestamp) > 5*time.Minute { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reused existing pattern
(cherry picked from commit 83422d5)
Summary
Related #34217
Reduce log noise when failing to get the cluster uuid from a beats state.
If the issue surfaced by this log is persistent it would already be highlighted by higher severity entries in the logs.