Skip to content

Commit

Permalink
Raise logging level for autodiscover configuration errors
Browse files Browse the repository at this point in the history
Raise up logging level to warning when attempting to configure beats with unknown fields from autodiscover events/environments.
  • Loading branch information
bdols authored Oct 23, 2023
1 parent 07ad78e commit 2b7dbea
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 @@ -169,6 +169,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 2b7dbea

Please sign in to comment.