# Not able to see user login in kibana

**URL:** <https://discuss.elastic.co/t/not-able-to-see-user-login-in-kibana/274845>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [June 3, 2021, 9:31am UTC](https://discuss.elastic.co/t/not-able-to-see-user-login-in-kibana/274845 "2021-06-03T09:31:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akanksha\_Pandey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akanksha_pandey/32/89539_2.png) [@Akanksha\_Pandey](https://discuss.elastic.co/u/Akanksha_Pandey)\
**Post date:** [June 3, 2021, 9:31am UTC](https://discuss.elastic.co/t/not-able-to-see-user-login-in-kibana/274845/1 "2021-06-03T09:31:40Z")

</div>

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

```auto
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

```

```auto
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"

```

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 4, 2021, 3:21am UTC](https://discuss.elastic.co/t/not-able-to-see-user-login-in-kibana/274845/2 "2021-06-04T03:21:58Z")

</div>

Here are the complete instructions plus examples

> **[Running the Elastic Stack on Docker | Getting Started \[7.9\] | Elastic](https://www.elastic.co/guide/en/elastic-stack-get-started/7.9/get-started-docker.html#get-started-docker-tls)**

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.

---

<div class="post-metadata">

**Author:** ![Akanksha\_Pandey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akanksha_pandey/32/89539_2.png) [@Akanksha\_Pandey](https://discuss.elastic.co/u/Akanksha_Pandey)\
**Post date:** [June 4, 2021, 1:16pm UTC](https://discuss.elastic.co/t/not-able-to-see-user-login-in-kibana/274845/3 "2021-06-04T13:16:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 4, 2021, 1:33pm UTC](https://discuss.elastic.co/t/not-able-to-see-user-login-in-kibana/274845/4 "2021-06-04T13:33:55Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 2, 2021, 1:34pm UTC](https://discuss.elastic.co/t/not-able-to-see-user-login-in-kibana/274845/5 "2021-07-02T13:34:45Z")

</div>

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