Skip to content

Commit

Permalink
[doc] Add example to cross-plugin-concepts (#12672)
Browse files Browse the repository at this point in the history
Adds an example showing users how to use the environment variable to define multiple whitespace-delimited URIs
  • Loading branch information
roaksoax authored Apr 13, 2021
1 parent bb0074f commit 2caea13
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/static/cross-plugin-concepts.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,17 @@ List-type URI parameters will automatically expand strings that contain multiple
whitespace-delimited URIs into separate entries. This behaviour enables the expansion
of an arbitrary list of URIs from a single Environment- or Keystore-variable.

Examples of plugins and options that support this functionality:
These plugins and options support this functionality:

* <<plugins-inputs-elasticsearch-hosts,Elasticsearch input plugin - `hosts`>>
* <<plugins-outputs-elasticsearch-hosts,Elasticsearch output plugin - `hosts`>>
* <<plugins-filters-elasticsearch-hosts,Elasticsearch filter plugin - `hosts`>>

You can use this functionality to define an environment variable with
multiple whitespace-delimited URIs and use it for the options above.

**Example**

```
ES_HOSTS="es1.example.com es2.example.com:9201 es3.example.com:9201"
```

0 comments on commit 2caea13

Please sign in to comment.