Skip to content

Commit

Permalink
Fix warning log line in serverless setup (#36867) (#36883)
Browse files Browse the repository at this point in the history
* fix warning log line

* change log line

* adjust language

(cherry picked from commit 7fffd0f)

Co-authored-by: Alex K <8418476+fearful-symmetry@users.noreply.github.com>
  • Loading branch information
mergify[bot] and fearful-symmetry authored Oct 17, 2023
1 parent d12feff commit 5e64807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/idxmgmt/lifecycle/es_client_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func NewESClientHandler(c ESClient, info beat.Info, cfg RawConfig) (*ESClientHan
// if the user has set both to different values, throw a warning, as overwrite operations will probably fail
if c.IsServerless() {
if cfg.TemplateName != "" && cfg.TemplateName != name {
logp.L().Warnf("policy name is %s but template name is %s; under serverless, non-default template and policy names should be the same. Updates & overwrites may not work.")
logp.L().Warnf("setup.dsl.data_stream_pattern is %s, but setup.template.name is %s; under serverless, non-default template and DSL pattern names should be the same. Additional updates & overwrites to this config will not work.", name, cfg.TemplateName)
}
}

Expand Down

0 comments on commit 5e64807

Please sign in to comment.