-
Notifications
You must be signed in to change notification settings - Fork 181
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
monstache can not connect to elasticsearch v8 docker compose #623
Comments
It may be because in Elasticsearch 8 security is enabled by default. You can configure monstache using config options |
thanks for the reply Enable security featuresxpack.security.enabled: true Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agentsxpack.security.http.ssl: Enable encryption and mutual authentication between cluster nodesxpack.security.transport.ssl: What should my config be like? |
hi @rwynn and when ( [elasticsearch-pki-auth] can you please help me ... |
Monstache only connects via the http/https endpoint. So you can generate a pem file and then reference that in your monstache config. This configuration worked for me on a new Elasticsearch 8 install: elasticsearch-urls = [ "https://localhost:9200" ]
elasticsearch-user="elastic"
elasticsearch-password="paste here"
elasticsearch-pem-file = "/home/ubuntu/http.pem"
elasticsearch-validate-pem-file = false
|
In your case the url to connect in docker compose would be |
@rwynn Thank you for your wonderful help! |
hi @rwynn
When I use version 7 of Elastic and Kibana in Docker Compose, everything is fine, but when I change the version of the image file to 8, this error is displayed:
c-monstache | ERROR 2022/07/14 11:05:55 Unable to create Elasticsearch client: health check timeout: Head "http://es7:9200": dial tcp 172.20.0.2:9200: connect: connection refused: no Elasticsearch node available
The text was updated successfully, but these errors were encountered: