Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Add example Env var usage for hosts setting #992

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,16 @@ should reference only data or client nodes in Elasticsearch.
Any special characters present in the URLs here MUST be URL escaped! This means
`#` should be put in as `%23` for instance.

When using Logstash 7.9+, this setting supports defining an environment variable
`hosts => '${S}'` with multiple {logstash-ref}/plugin-concepts.html#space-delimited-uris-in-list-params[whitespace-delimited URIs]:
roaksoax marked this conversation as resolved.
Show resolved Hide resolved

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}-http_compression"]
===== `http_compression`

Expand Down