question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use multiple elasticsearch hosts

See original GitHub issue

Chart version: 7.6.2

Kubernetes provider: E.g. GKE (Google Kubernetes Engine) AWS

Helm Version: 2.16.6

Describe the bug: Trying to set multiple values in the elasticsearchHosts, turns out that is not able to parse the values. I already try to set the value in multiple ways. Could somebody just put a WORKING example of it. Here are some of the formats that I tried:

## Array example 1:
kibana.yml:
  elasticsearchHosts: '["http://es1:9200", "http://es2:9200", "http://es3:9200"]'

## Array example 2:
kibana.yml:
  elasticsearchHosts: ["http://es1:9200", "http://es2:9200", "http://es3:9200"]

## Array example 3:
kibana.yml:
  elasticsearchHosts:
  - http://es1:9200
  - http://es2:9200
  - http://es3:9200

## Array example 4:
kibana.yml:
  elasticsearchHosts:
    http://es1:9200
    http://es2:9200
    http://es3:9200

Expected behavior: The helm is able to parse multiple values as array

Provide logs and/or server output (if relevant):

 FATAL  Error: [config validation of [elasticsearch].hosts]: types that failed validation:
- [config validation of [elasticsearch].hosts.0]: expected URI with scheme [http|https] but got [[http://es1:9200].
- [config validation of [elasticsearch].hosts.1]: expected value of type [array] but got [string]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:11

github_iconTop GitHub Comments

3reactions
Madmaxguycommented, Feb 3, 2022

Still an issue and also experiencing it

3reactions
abuisinecommented, Jun 17, 2020

The solution would be something like this :

elasticsearchHosts: "[\\\"http://192.168.69.61:9200\\\",\\\"http://192.168.69.62:9200\\\",\\\"http://192.168.69.63:9200\\\"]"

I am about to propose a PR as it is insane 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kibana Setting multiple elasticsearch.hosts over marathon ...
So, my goal is to set up a two node cluster, with two elasticsearch nodes and a kibana client capable of using them...
Read more >
How to connect to multiple Elasticsearch client nodes without ...
A few applications don't make a list of hosts. The most notable is Kibana®, which accepts a single host. To work around this,...
Read more >
How to deploy an Elastic Search cluster consisting of multiple ...
Hi, In this post I'll discuss on how to deploy Elastic Search docker images as a cluster on multiple hosts ( Note: This...
Read more >
Connect to multiple elasticsearch hosts with different ...
Multiple hosts in the configuration are multiple nodes in the same cluster, and there you'd only have username/password.
Read more >
Managing Elasticsearch hosts | Yandex Cloud - Documentation
You can get a list of hosts in the Elasticsearch cluster, and add and remove hosts from the cluster. You can only manage...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found