From 9a356d3b6323fc86021f8c4d426ba62b3a142d8c Mon Sep 17 00:00:00 2001 From: "Lee E. Hinman" Date: Fri, 10 Jan 2025 11:09:26 -0600 Subject: [PATCH 1/2] fix setting registry for non beat receivers --- CHANGELOG.next.asciidoc | 1 + libbeat/cmd/instance/beat.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 6aff59314954..cf6c94c6caf3 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -126,6 +126,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff] - Prevent panic if libbeat processors are loaded more than once. {issue}41475[41475] {pull}41857[51857] - Allow network condition to handle field values that are arrays of IP addresses. {pull}41918[41918] - Fix a bug where log files are rotated on startup when interval is configured and rotateonstartup is disabled {issue}41894[41894] {pull}41895[41895] +- Fix setting unique registry for non beat receivers {issue}42288[42288] {pull}99999[99999] *Auditbeat* diff --git a/libbeat/cmd/instance/beat.go b/libbeat/cmd/instance/beat.go index 6941c571216e..1d135ce56523 100644 --- a/libbeat/cmd/instance/beat.go +++ b/libbeat/cmd/instance/beat.go @@ -1142,6 +1142,8 @@ func (b *Beat) configure(settings Settings) error { debug.SetGCPercent(gcPercent) } + b.Info.Monitoring.Namespace = monitoring.GetNamespace("dataset") + b.Beat.BeatConfig, err = b.BeatConfig() if err != nil { return err From 8130d52ef61d97056e337231ae40110e195ae00b Mon Sep 17 00:00:00 2001 From: Lee E Hinman <57081003+leehinman@users.noreply.github.com> Date: Wed, 22 Jan 2025 08:27:18 -0600 Subject: [PATCH 2/2] Update CHANGELOG.next.asciidoc Co-authored-by: Mauri de Souza Meneguzzo --- CHANGELOG.next.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index cf6c94c6caf3..85ad451b0151 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -126,7 +126,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff] - Prevent panic if libbeat processors are loaded more than once. {issue}41475[41475] {pull}41857[51857] - Allow network condition to handle field values that are arrays of IP addresses. {pull}41918[41918] - Fix a bug where log files are rotated on startup when interval is configured and rotateonstartup is disabled {issue}41894[41894] {pull}41895[41895] -- Fix setting unique registry for non beat receivers {issue}42288[42288] {pull}99999[99999] +- Fix setting unique registry for non beat receivers {issue}42288[42288] {pull}42292[42292] *Auditbeat*