Closed philippkahr closed 3 months ago
If I am not mistaken e.g. the line https://github.com/elastic/beats/blob/76974f88af08920b153e21d57c177294a15ab095/metricbeat/module/elasticsearch/elasticsearch.go#L163 automatically appends /_nodes
to the settings from the hosts e.g. http://localhost:9200//_nodes
whilst the https://github.com/elastic/beats/blob/76974f88af08920b153e21d57c177294a15ab095/metricbeat/module/elasticsearch/elasticsearch.go#L183 appends _cluster
which results in a correct http://localhost:9200/_cluster
.
I guess we need to parse the hosts
properly and verify if appending a /
is necessary.
Pinging @elastic/stack-monitoring (Stack monitoring)
Pinging @elastic/integrations (Team:Integrations)
May be related or caused by https://github.com/elastic/beats/issues/27842
Hi! We just realized that we haven't looked into this issue in a while. We're sorry!
We're labeling this issue as Stale
to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1
.
Thank you for your contribution!
I just ran into this issue this weekend, and it took some time, until I found out that I had to remove the trailing slash.
I'm pretty sure I'm not the first one, who ran into this, so I would appreciate it if this could get some priority.
Hi! We just realized that we haven't looked into this issue in a while. We're sorry!
We're labeling this issue as Stale
to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1
.
Thank you for your contribution!
Beats: 7.14.1 MacOS 11.5.2 and Windows 10.
Steps to reproduce:
hosts: ["http://localhost:9200"]
change tohosts: ["http://localhost:9200/"]
so it features a trailing/
.Steps to fix:
/
slashExpected behaviour:
/
or throw an error on startup that an invalid configuration was detected.