mirror of
https://github.com/elastic/logstash.git
synced 2025-06-29 02:03:30 -04:00
[doc] Update example ES output configs to reflect DS being default (#14011)
Update example ES output configs to reflect DataStreams being default Fixes #14008
This commit is contained in:
parent
422dfa7a26
commit
e5bc14b51d
1 changed files with 9 additions and 5 deletions
14
docs/static/filebeat-modules.asciidoc
vendored
14
docs/static/filebeat-modules.asciidoc
vendored
|
@ -74,8 +74,9 @@ output {
|
|||
elasticsearch {
|
||||
hosts => "https://061ab24010a2482e9d64729fdb0fd93a.us-east-1.aws.found.io:9243"
|
||||
manage_template => false
|
||||
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
|
||||
pipeline => "%{[@metadata][pipeline]}" <1>
|
||||
index => "%{[@metadata][beat]}-%{[@metadata][version]}" <1>
|
||||
action => "create" <2>
|
||||
pipeline => "%{[@metadata][pipeline]}" <3>
|
||||
user => "elastic"
|
||||
password => "secret"
|
||||
}
|
||||
|
@ -83,15 +84,18 @@ output {
|
|||
elasticsearch {
|
||||
hosts => "https://061ab24010a2482e9d64729fdb0fd93a.us-east-1.aws.found.io:9243"
|
||||
manage_template => false
|
||||
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
|
||||
index => "%{[@metadata][beat]}-%{[@metadata][version]}" <1>
|
||||
action => "create"
|
||||
user => "elastic"
|
||||
password => "secret"
|
||||
}
|
||||
}
|
||||
}
|
||||
-----
|
||||
<1> Set the `pipeline` option to `%{[@metadata][pipeline]}`. This setting
|
||||
configures {ls} to select the correct ingest pipeline based on metadata
|
||||
<1> If data streams are disabled in your configuration, set the `index` option to `%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}`. Data streams are enabled by default.
|
||||
<2> If you are disabling the use of Data Streams on your configuration, you can
|
||||
remove this setting, or set it to a different value as appropriate.
|
||||
<3> Configures {ls} to select the correct ingest pipeline based on metadata
|
||||
passed in the event.
|
||||
|
||||
See the {filebeat} {filebeat-ref}/filebeat-modules-overview.html[Modules]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue