Skip to content

Commit 2caea13

Browse files
authored
[doc] Add example to cross-plugin-concepts (#12672)
Adds an example showing users how to use the environment variable to define multiple whitespace-delimited URIs
1 parent bb0074f commit 2caea13

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/static/cross-plugin-concepts.asciidoc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@ List-type URI parameters will automatically expand strings that contain multiple
1010
whitespace-delimited URIs into separate entries. This behaviour enables the expansion
1111
of an arbitrary list of URIs from a single Environment- or Keystore-variable.
1212

13-
Examples of plugins and options that support this functionality:
13+
These plugins and options support this functionality:
1414

1515
* <<plugins-inputs-elasticsearch-hosts,Elasticsearch input plugin - `hosts`>>
1616
* <<plugins-outputs-elasticsearch-hosts,Elasticsearch output plugin - `hosts`>>
1717
* <<plugins-filters-elasticsearch-hosts,Elasticsearch filter plugin - `hosts`>>
18+
19+
You can use this functionality to define an environment variable with
20+
multiple whitespace-delimited URIs and use it for the options above.
21+
22+
**Example**
23+
24+
```
25+
ES_HOSTS="es1.example.com es2.example.com:9201 es3.example.com:9201"
26+
```

0 commit comments

Comments
 (0)