From e5bc14b51dbedd00e13a2a3d2f33b13c6726ebf6 Mon Sep 17 00:00:00 2001 From: Andres Rodriguez Date: Mon, 25 Jul 2022 13:12:59 -0400 Subject: [PATCH] [doc] Update example ES output configs to reflect DS being default (#14011) Update example ES output configs to reflect DataStreams being default Fixes #14008 --- docs/static/filebeat-modules.asciidoc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/static/filebeat-modules.asciidoc b/docs/static/filebeat-modules.asciidoc index c12223b09..404e21cf2 100644 --- a/docs/static/filebeat-modules.asciidoc +++ b/docs/static/filebeat-modules.asciidoc @@ -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]