-1

I'm getting this error while using Monstache:

Unable to create Elasticsearch client: health check timeout: no Elasticsearch node available

I applied these lines to Monstache configuration:

elasticsearch-validate-pem-file = false
elasticsearch-healthcheck-timeout-startup = 200
elasticsearch-healthcheck-timeout = 200

However, I still encounter the mentioned error. When I searched about it, I found that the problem is due to sniffing in elasticsearch client. But I don't know where and how exactly I must change it?

I should denote that I studied this tutorial for this problem, but I'm still full of ambiguities.

2 Answers 2

0

The problem has been solved when I installed Monstache on the same local server on which the ELK stack was installed. Also, the MongoDB database on the remote server has been changed to a single node replica set to be able to connect to Monstache.

-1

let's try to use

elastic.SetSniff(false)
3
  • Thanks for your answer, I already did it. But it doesn't work. Aug 23, 2021 at 4:50
  • did you tried to config url connect? url := "http://[host]:9200" (not include the slash "/" at the end of url) ref: github.com/rwynn/monstache/issues/250
    – van le
    Aug 24, 2021 at 5:40
  • Yes, I did. But the problem did not solve. Aug 24, 2021 at 7:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.