diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cb60bf..cad9640 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ +## next + - [DOC] Added examples for using space delimited strings for `hosts` option [#149](https://github.com/logstash-plugins/logstash-filter-elasticsearch/pull/149) + ## 3.9.3 - - [DOC] Update links to use shared attributes [#144](https://github.com/logstash-plugins/logstash-filter-elasticsearch/pull/144) + - [DOC] Updated links to use shared attributes [#144](https://github.com/logstash-plugins/logstash-filter-elasticsearch/pull/144) ## 3.9.2 - [DOC] Fixed links to restructured Logstash-to-cloud docs [#142](https://github.com/logstash-plugins/logstash-filter-elasticsearch/pull/142) diff --git a/docs/index.asciidoc b/docs/index.asciidoc index 729926d..e79ccd1 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -267,6 +267,17 @@ fields => { List of elasticsearch hosts to use for querying. +This option can accept an environment variable containing one or more hostnames separated by whitespace. +Strings separated by whitespace are treated as separate entries. + +*Examples:* + +* `ES_HOSTS="es1.example.com es2.example.com:9201 es3.example.com:9201"` +* `ES_HOSTS="127.0.0.1:9200 127.0.0.2:9200"` +* `ES_HOSTS="http://127.0.0.1 http://127.0.0.2"` +* `ES_HOSTS="https://127.0.0.1:9200/mypath https://127.0.0.2:9200/mypath"` + + [id="plugins-{type}s-{plugin}-index"] ===== `index`