Starting with ELK

Dear All,

I am completely new to ELK and following some help I created a docker-compose.yml file in order to run it under Docker. Inside this file I configured a elasticsearch service and kibana, but accessing kibana is giving m problems "Login is currently disabled"

I have tried with xpack.authentication.enabled to false but every time that I change it in the yml file, docker console complaints that the compose file is invalid because of the config option.

Could anyone help me?
Thanks

Welcome!

Here is how I'm setting that with docker compose ( docker-compose.yml):

---
version: '3'
services:

  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:$ELASTIC_VERSION
    environment:
      - bootstrap.memory_lock=true
      - discovery.type=single-node
      - ELASTIC_PASSWORD=$ELASTIC_PASSWORD
      - xpack.security.enabled=$ELASTIC_SECURITY
    ulimits:
      memlock:
        soft: -1
        hard: -1
    ports:
      - 9200:9200
    networks: ['stack']

  kibana:
    image: docker.elastic.co/kibana/kibana:$ELASTIC_VERSION
    environment:
      - ELASTICSEARCH_USERNAME=elastic
      - ELASTICSEARCH_PASSWORD=$ELASTIC_PASSWORD
    ports: ['5601:5601']
    networks: ['stack']
    links: ['elasticsearch']
    depends_on: ['elasticsearch']

networks:
  stack: {}

.env file is:

ELASTIC_VERSION=7.9.2
ELASTIC_SECURITY=true
ELASTIC_PASSWORD=changeme

Thanks a lot. I will try it immediately!

No success so far. I post here my docker-compose.yml, in case anyone can see something that completely escapes from my understanding.

version: '3.8'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:6.1.0
container_name: es01
environment:
- node.name=es01
- cluster.name=drmkc-docker-cluster
- discovery.type=single-node
- bootstrap.memory_lock=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- path.repo=/usr/share/elasticsearch/backup
- path.logs=/usr/share/elasticsearch/logs
- ELASTIC_PASSWORD=111111
- xpack.security.enabled=true
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- type: bind
source: C:\Work\Elasticsearch-docker\data-es01
target: /usr/share/elasticsearch/data
- type : bind
source: C:\Work\Elasticsearch-docker_backup
target: /usr/share/elasticsearch/backup
- type : bind
source: C:\Work\Elasticsearch-docker\logs-es01
target: /usr/share/elasticsearch/logs
ports:
- 9200:9200
networks:
- elastic

kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:6.1.0
restart: always
environment:
- ELASTICSEARCH_HOSTS=http://es01:9200
ports:
- 5601:5601
depends_on:
- es01

networks:
elastic:
driver: bridge

Why are you using such an old version? Why not use the latest version if you just starting out?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.