Skip to content

Commit

Permalink
raise up logging level to warning when attempting to configure beats …
Browse files Browse the repository at this point in the history
…with unknown fields from autodiscovered events/environments
  • Loading branch information
bdols committed Oct 20, 2023
1 parent 0bd2d73 commit 5e664a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ is collected by it.
Setting environmental variable ELASTIC_NETINFO:false in Elastic Agent pod will disable the netinfo.enabled option of add_host_metadata processor
- allow `queue` configuration settings to be set under the output. {issue}35615[35615] {pull}36788[36788]
- Beats will now connect to older Elasticsearch instances by default {pull}36884[36884]
- Raise up logging level to warning when attempting to configure beats with unknown fields from autodiscovered events/environments

*Auditbeat*

Expand Down
2 changes: 1 addition & 1 deletion libbeat/autodiscover/template/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func ApplyConfigTemplate(event bus.Event, configs []*conf.C, options ...ucfg.Opt
var unpacked map[string]interface{}
err = c.Unpack(&unpacked, opts...)
if err != nil {
logp.Debug("autodiscover", "Configuration template cannot be resolved: %v", err)
logp.Warn("autodiscover: Configuration template cannot be resolved: %v", err)
continue
}
// Repack again:
Expand Down

0 comments on commit 5e664a5

Please sign in to comment.