Hi,
My elasticsearch is not connecting with kibana because we are using 8.15.0 version.It is giving error [ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. security_exception
Root causes:
security_exception: missing authentication credentials for REST request [/_nodes?filter_path=nodes..version%2Cnodes..http.publish_address%2Cnodes.*.ip]
[2024-09-25T04:40:47.156+00:00][INFO ][plugins.screenshotting.chromium] Browser executable: /usr/share/kibana/node_modules/@kbn/screenshotting-plugin/chromium/headless_shell-linux_x64/headless_shell
My docker-compose file is below.
version: '3.6'
services:
Elasticsearch:
image: elasticsearch:8.15.0
container_name: elasticsearch
hostname: elasticsearch
restart: always
volumes:
- elastic_data:/usr/share/elasticsearch/data/
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
discovery.type: single-node
xpack.security.enabled: "true"
ELASTIC_PASSWORD: "password" # Set the
ports:
- '9200:9200'
- '9300:9300'
networks:
- elk
Kibana:
image: kibana:8.15.0
container_name: kibana
restart: always
ports:
- '5601:5601'
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- xpack.security.enabled=true
- ELASTIC_USERNAME=elastic
- ELASTIC_PASSWORD=password
- ELASTICSEARCH_SERVICE_CHECK_INTERVAL=10000
depends_on:
- Elasticsearch
networks:
- elk
volumes:
elastic_data: {}
networks:
elk:
We have used ELASTICSEARCH_SERVICE_TOKEN also but it doesn't work.
But we have used the above docker-compose for the version elasticsearch:7.16.2 and kibana:7.16.2 and it is working good,but it doesn't work for 8.15.0 version.Can anyone help on this?