Not able to see user login in kibana

My kibana and elasticsearch version is 7.9.2

I added elasticsearch.username: and elasticsearch.password: in kibana.yml and docker-compse.yaml file. And I also added xpack.security.enabled: true in kibana.yml and elasticsearch.yml file. After that I restarted my docker conatiner and tried accessing the kibana dashboard but it directs me to the dashboard, login page is not showing. Can anyone help me please? I have shared below my docker-compose.yaml and kibana.yml filles
@stephenb

docker-compose.yaml file

version: '3.7'
services: 
  elasticsearch: 
    build:
      context: elasticsearch/
    container_name: elasticsearch
    volumes:
      - type: bind
        source: ./elasticsearch/conf/elasticsearch.yml
        target: /usr/share/elasticsearch/conf/elasticsearch.yml
        read_only: true
      - type: volume
        source: elasticsearch
        target: /usr/share/elasticsearch/data
    ports:
      - "9200:9200"
    environment:
      ES_JAVA_OPTS: "-Xmx2g -Xms2g"
      xpack.security.enabled: "true"
      ELASTIC_PASSWORD: "test "
      ELASTIC_USERNAME : "password"
      # Use single node discovery in order to disable production mode and avoid bootstrap checks.
      # see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
      discovery.type: single-node
    networks:
      - elastic
    restart: always
  
  logstash:
    container_name: logstash
    build: 
      context: logstash/
    # command: logstash -f /conf/logstash.conf
    volumes:
      - type: bind
        source: ./logstash/conf/logstash.yml
        target: /usr/share/logstash/conf/logstash.yml
        read_only: true
      - type: bind
        source: ./logstash/pipeline
        target: /usr/share/logstash/pipeline
        read_only: true
    ports:
     - "5043:5043"
     - "5044:5044"
    environment:
      LS_JAVA_OPTS: "-Xmx1g -Xms1g"
      xpack.monitoring.elasticsearch.url: "elasticsearch:9200"
      xpack.monitoring.elasticsearch.username: "test"
      xpack.monitoring.elasticsearch.password: "password"
    networks:
      - elastic
    depends_on:
     - elasticsearch
    restart: always

  kibana:
    build:
      context: kibana/
    container_name: kibana
    volumes:
      - type: bind
        source: ./kibana/conf/kibana.yml
        target: /usr/share/kibana/conf/kibana.yml
        read_only: true
    ports:
      - "5601:5601"
    networks:
        - elastic
    depends_on:
      - elasticsearch
    restart: always
  

volumes:
  elasticsearch:

networks:
  elastic:
    driver: bridge

Kibana.yml file-

server.name: kibana
server.host: 0.0.0.0
elasticsearch.url: http://elasticsearch:9200
monitoring.ui.container.elasticsearch.enabled: true
elasticsearch.username: "test"
elasticsearch.password: "password"

Here are the complete instructions plus examples

Pay special attention too.

  1. At this point, Kibana cannot connect to the Elasticsearch cluster. You must generate a password for the built-in kibana_system user, update the ELASTICSEARCH_PASSWORD in the compose file, and restart to enable Kibana to communicate with the secured cluster.

  2. Run the elasticsearch-setup-passwords tool to generate passwords for all built-in users, including the kibana_system user. If you don’t use PowerShell on Windows, remove the trailing \characters and join the lines before running this command.

docker exec es01 /bin/bash -c "bin/elasticsearch-setup-passwords \ auto --batch --url https://es01:9200"

Make a note of the generated passwords. You must configure the kibana_system user password in the compose file to enable Kibana to connect to Elasticsearch, and you’ll need the password for the elastic superuser to log in to Kibana and submit requests to Elasticsearch.

  1. Set ELASTICSEARCH_PASSWORD in the elastic-docker-tls.yml compose file to the password generated for the kibana_system user.

thanks but I do not have a Gold license, I have a Basic license. Also I do not have Security option as well in the Kibana UI.

Also I tried generating password using elasticsearch-setup-passwords interactive but it didn't work.

Does not require gold... Says IF you have Gold you must use TLS you have basic you can chose to use TLS or not use TLS with Basic.

You can enable Basic Auth Only

Not sure of your issue I followed those directions worked fine for me.

You should be able to follow those steps but skip the TLS portions.

Did you recreate your containers?

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