Hello everyone, I have been trying to deploy elasticsearch and kibana for several days now. I'm using docker compos and having a lot of problems. I have provided an example of the file below, but there is this error with it. It happens after I enter the user and password from kibana and try to make the settings.
[2023-11-24T17:36:46.413+00:00][ERROR][plugins.interactiveSetup.elasticsearch] Failed to authenticate with host "https://elasticsearch:9200": Hostname/IP does not match certificate's altnames: Host: elasticsearch. is not in the cert's altnames: DNS:localhost, IP Address:127.0.0.1, DNS:827c6cde4f62, IP Address:172.26.0.2
I reset all passwords via docker exec and there are no problems with this. I tried to set different settings in the environment for example, but this also did not help and caused another error.
From Elasticsearch environment:
- ELASTIC_USERNAME=elastic
- ELASTIC_PASSWORD=test123
From Kibana environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- ELASTIC_USERNAME=kibana_system
- ELASTIC_PASSWORD=test123
If I try to use token from elasticsearch I have other error
[2023-11-24T18:14:55.752+00:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. socket hang up - Local: 172.28.0.3:59632, Remote: 172.28.0.2:9200
Could you please suggest a working option for docker to use elasticsearch and kibana?
Thank you very much, your solution works for me, but I’m very interested, could you tell me if I can somehow use this method without certificates and the installation section?
Just to be clear there are a number of features that require security to be configured.
If you want absolutely no security... Which you need to be very careful with as the cluster
This is fine say working on your laptop but do not put ANY sensitive data etc.
You can use this compose it turns off all security.... if you want something in between you will need to configure that yourself
you start with with $ TAG=8.11.1 docker-compose up
You can change the memory limits , CPU etc as they are hard coded.
Thank you, I have already tried this method. If I set xpack.security.enabled=false, then I can configure Kibana automatically, but there is no search, I cannot change the user and other restrictions. I want to have security such as authorization under elastic or kibana_system and also the most important thing is search to create an index and use it. The only thing I want to disable is the https check so that it does not require specifying certificates since this computer does not look outside and is only used within the network, but users and passwords should remain. Can I do as described above?
I would start from the single compose I gave you and start to edit down... Take out the SSL settings and try that... If that works take out the cert Creation... You will still need to set up to set the Kibana system password and those kind of things
I'm not sure what you mean by that. You can absolutely search and use most of elasticsearch and Kibana without authentication... Did you actually try what I sent you? It works for sure I use it everyday... But yes, it does not support users and roles.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.