diff --git a/docs/copied-from-beats/command-reference.asciidoc b/docs/copied-from-beats/command-reference.asciidoc index 6e18948440b..eb6a8d34970 100644 --- a/docs/copied-from-beats/command-reference.asciidoc +++ b/docs/copied-from-beats/command-reference.asciidoc @@ -82,23 +82,23 @@ endif::[] [options="header"] |======================= |Commands | -ifeval::[("{beatname_lc}"=="functionbeat")] +ifdef::functionbeat[] |<> | {deploy-command-short-desc}. endif::[] |<> |{export-command-short-desc}. |<> |{help-command-short-desc}. |<> |{keystore-command-short-desc}. -ifeval::[("{beatname_lc}"=="functionbeat")] +ifdef::functionbeat[] |<> |{package-command-short-desc}. |<> |{remove-command-short-desc}. endif::[] -ifeval::[("{beatname_lc}"=="filebeat") or ("{beatname_lc}"=="metricbeat")] +ifndef::apm-server[] |<> |{modules-command-short-desc}. endif::[] |<> |{run-command-short-desc}. |<> |{setup-command-short-desc}. |<> |{test-command-short-desc}. -ifeval::[("{beatname_lc}"=="functionbeat")] +ifdef::functionbeat[] |<> |{update-command-short-desc}. endif::[] |<> |{version-command-short-desc}. @@ -106,7 +106,7 @@ endif::[] Also see <>. -ifeval::[("{beatname_lc}"=="functionbeat")] +ifdef::functionbeat[] [[deploy-command]] ==== `deploy` command @@ -327,7 +327,7 @@ Shows help for the `keystore` command. See <> for more examples. -ifeval::[("{beatname_lc}"=="functionbeat")] +ifdef::functionbeat[] [[package-command]] ==== `package` command @@ -389,7 +389,7 @@ Shows help for the `remove` command. ----- endif::[] -ifeval::[("{beatname_lc}"=="filebeat") or ("{beatname_lc}"=="metricbeat")] +ifndef::apm-server[] [[modules-command]] ==== `modules` command @@ -721,7 +721,7 @@ ifeval::["{beatname_lc}"=="metricbeat"] ----- endif::[] -ifeval::[("{beatname_lc}"=="functionbeat")] +ifdef::functionbeat[] [[update-command]] ==== `update` command diff --git a/docs/copied-from-beats/shared-docker.asciidoc b/docs/copied-from-beats/shared-docker.asciidoc index eda2b026e27..1b230151523 100644 --- a/docs/copied-from-beats/shared-docker.asciidoc +++ b/docs/copied-from-beats/shared-docker.asciidoc @@ -46,7 +46,7 @@ ifndef::apm-server[] Running {beatname_uc} with the setup command will create the index pattern and load visualizations, dashboards, and machine learning jobs. Run this command: -ifeval::[("{beatname_lc}"=="filebeat") or ("{beatname_lc}"=="metricbeat") or ("{beatname_lc}"=="heartbeat") or ("{beatname_lc}"=="journalbeat")] +ifndef::apm-server[] ["source", "sh", subs="attributes"] -------------------------------------------- docker run \ @@ -113,7 +113,7 @@ curl -L -O {dockerconfig} One way to configure {beatname_uc} on Docker is to provide +{beatname_lc}.docker.yml+ via a volume mount. With +docker run+, the volume mount can be specified like this: -ifeval::[("{beatname_lc}"=="filebeat") or ("{beatname_lc}"=="journalbeat")] +ifndef::apm-server[] ["source", "sh", subs="attributes"] -------------------------------------------- docker run -d \ @@ -175,7 +175,7 @@ docker run -d \ -------------------------------------------- endif::[] -ifeval::[("{beatname_lc}"=="heartbeat") or ("{beatname_lc}"=="apm-server")] +ifdef::apm-server[] ["source", "sh", subs="attributes"] -------------------------------------------- docker run -d \ @@ -195,7 +195,7 @@ using the syntax shown earlier. ===== Customize your configuration -ifeval::[("{beatname_lc}"=="filebeat") or ("{beatname_lc}"=="metricbeat")] +ifndef::apm-server[] The +{beatname_lc}.docker.yml+ file you downloaded earlier is configured to deploy Beats modules based on the Docker labels applied to your containers. See <> for more details. Add labels to your application Docker containers, and they will be picked up by the Beats autodiscover feature when they are deployed. Here is an example command for an Apache HTTP Server container with labels to configure the Filebeat and Metricbeat modules for the Apache HTTP Server: @@ -216,7 +216,7 @@ docker run \ endif::[] -ifeval::[("{beatname_lc}"!="filebeat") and ("{beatname_lc}"!="metricbeat")] +ifdef::apm-server[] The +{beatname_lc}.docker.yml+ downloaded earlier should be customized for your environment. See <> for more details. Edit the configuration file and customize it to match your environment then re-deploy your {beatname_uc} container. endif::[]