Skip to content

Commit

Permalink
Add warning about setup.template.overwrite to documentation and refer…
Browse files Browse the repository at this point in the history
…ence configuration (#22357) (#22416)

This PR adds a warning about `setup.template.overwrite` option.

Users might enable this option and then start multiple instances of Beats at the same time. This can overload Elasticsearch with too many template update requests.

(cherry picked from commit 8798d41)
  • Loading branch information
kvch authored Nov 6, 2020
1 parent 6b4db5a commit 0149af1
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 1 deletion.
2 changes: 2 additions & 0 deletions auditbeat/auditbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of auditbeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
2 changes: 2 additions & 0 deletions filebeat/filebeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2078,6 +2078,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of filebeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
2 changes: 2 additions & 0 deletions heartbeat/heartbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of heartbeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
2 changes: 2 additions & 0 deletions journalbeat/journalbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of journalbeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
2 changes: 2 additions & 0 deletions libbeat/_meta/config/setup.template.reference.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of {{.BeatName}} as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
4 changes: 4 additions & 0 deletions libbeat/docs/howto/load-index-templates.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ If the template already exists, it’s not overwritten unless you configure
[[overwrite-template]]
=== Overwrite an existing index template

WARNING: Do not enable this option for more than one instance of {beatname_uc}. If you start
multiple instances at the same time, it can overload your {es} with too many
template update requests.

To overwrite a template that's already loaded into {es}, set:

[source,yaml]
Expand Down
3 changes: 2 additions & 1 deletion libbeat/docs/template-config.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ relative path is set, it is considered relative to the config path. See the <<di
section for details.

*`setup.template.overwrite`*:: A boolean that specifies whether to overwrite the existing template. The default
is false.
is false. Do not enable this option is you start more than one instance of {beatname_uc} at the same time. It
can overload your {es} by sending too many template update reqests.

*`setup.template.settings`*:: A dictionary of settings to place into the `settings.index` dictionary of the
Elasticsearch template. For more details about the available Elasticsearch mapping options, please
Expand Down
2 changes: 2 additions & 0 deletions metricbeat/metricbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1980,6 +1980,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of metricbeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
2 changes: 2 additions & 0 deletions packetbeat/packetbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of packetbeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
2 changes: 2 additions & 0 deletions winlogbeat/winlogbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of winlogbeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
2 changes: 2 additions & 0 deletions x-pack/auditbeat/auditbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of auditbeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
2 changes: 2 additions & 0 deletions x-pack/filebeat/filebeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3554,6 +3554,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of filebeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
2 changes: 2 additions & 0 deletions x-pack/functionbeat/functionbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of functionbeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
2 changes: 2 additions & 0 deletions x-pack/heartbeat/heartbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of heartbeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
2 changes: 2 additions & 0 deletions x-pack/metricbeat/metricbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2462,6 +2462,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of metricbeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down
2 changes: 2 additions & 0 deletions x-pack/winlogbeat/winlogbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,8 @@ output.elasticsearch:
#setup.template.json.name: ""

# Overwrite existing template
# Do not enable this option for more than one instance of winlogbeat as it might
# overload your Elasticsearch with too many update requests.
#setup.template.overwrite: false

# Elasticsearch template settings
Expand Down

0 comments on commit 0149af1

Please sign in to comment.