diff --git a/libbeat/docs/command-reference.asciidoc b/libbeat/docs/command-reference.asciidoc index 0c65e80dc6b8..91daaf097be6 100644 --- a/libbeat/docs/command-reference.asciidoc +++ b/libbeat/docs/command-reference.asciidoc @@ -336,8 +336,8 @@ If {kib} is not running on `localhost:5061`, you must also adjust the endif::no_dashboards[] [[template-subcommand]]*`template`*:: -Exports the index template to stdout. You can specify the `--es.version` and -`--index` flags to further define what gets exported. Furthermore you can export +Exports the index template to stdout. You can specify the `--es.version` +flag to further define what gets exported. Furthermore you can export the template to a file instead of `stdout` by defining a directory via `--dir`. [[ilm-policy-subcommand]] @@ -388,10 +388,6 @@ endif::export_pipeline[] *`-h, --help`*:: Shows help for the `export` command. -*`--index BASE_NAME`*:: -When used with <>, sets the base name to use for -the index template. If this flag is not specified, the default base name is -+{beatname_lc}+. *`--dir DIRNAME`*:: @@ -412,7 +408,7 @@ ifndef::no_dashboards[] ["source","sh",subs="attributes"] ----- {beatname_lc} export config -{beatname_lc} export template --es.version {version} --index myindexname +{beatname_lc} export template --es.version {version} {beatname_lc} export dashboard --id="a7b35890-8baa-11e8-9676-ef67484126fb" > dashboard.json ----- endif::no_dashboards[] @@ -421,7 +417,7 @@ ifdef::no_dashboards[] ["source","sh",subs="attributes"] ----- {beatname_lc} export config -{beatname_lc} export template --es.version {version} --index myindexname +{beatname_lc} export template --es.version {version} ----- endif::no_dashboards[] endif::serverless[] @@ -430,7 +426,7 @@ ifdef::serverless[] ["source","sh",subs="attributes"] ----- {beatname_lc} export config -{beatname_lc} export template --es.version {version} --index myindexname +{beatname_lc} export template --es.version {version} {beatname_lc} export function cloudwatch ----- endif::serverless[]