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 space delimited URI examples to hosts option #149

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
11 changes: 11 additions & 0 deletions docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what the back-story is but these aren't working properly.
the first 2 examples will start although I do not think the host fall-over is working (only the first entry is extracted by the client library). for the second half of examples - they simply fail to start the plugin.

* `ES_HOSTS="https://127.0.0.1:9200/mypath https://127.0.0.2:9200/mypath"`


[id="plugins-{type}s-{plugin}-index"]
===== `index`

Expand Down