# Kibana login username & password

**URL:** https://discuss.elastic.co/t/kibana-login-username-password/69016
**Category:** Kibana
**Created:** [December 14, 2016, 12:43pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016 "2016-12-14T12:43:09Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 12:43pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/1 "2016-12-14T12:43:09Z")

</div>

Can I disable it ? Where do I set a username and password? It is the first time I am running the Kibana 5.

---

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 1:32pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/2 "2016-12-14T13:32:35Z")

</div>

I think I understood the issue. I need to disable the xpack security in both elasticsearch.yml and kibana.yml.

Right?

---

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 1:59pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/3 "2016-12-14T13:59:02Z")

</div>

Still stuck with no abilities to open the kibana without login user and pass

---

<div class="post-metadata">

### Author: ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)
#### Post date: [December 14, 2016, 2:29pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/4 "2016-12-14T14:29:58Z")

</div>

Hi @ssasporta,

setting `xpack.security.enabled: false` in both the `elasticsearch.yml` and the `kibana.yml` should remove the login screen and allow completely unauthorized access to both Elasticsearch and Kibana. Did you restart both processes after changing those settings?

---

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 2:52pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/5 "2016-12-14T14:52:05Z")

</div>

After setting this line in both yml files & restarting both elasticsearch & kibana, when I am trying to reach the kibana via browser, I am getting a note in the browser:  
This site can't be reached.  
`<My machine IP>` refused to connect.

---

<div class="post-metadata">

### Author: ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)
#### Post date: [December 14, 2016, 2:57pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/6 "2016-12-14T14:57:46Z")

</div>

That sounds like an unrelated problem. Would it be able for you to provide the Elasticsearch and Kibana logs?

BTW: Instead of disabling Security, you can also opt to configure it to your needs. The documentation contains a detailed [Getting Started With Security Guide](https://www.elastic.co/guide/en/x-pack/current/security-getting-started.html), which introduces the concepts and also shows specific configuration steps.

---

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 3:11pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/7 "2016-12-14T15:11:13Z")

</div>

How can I send the logs? email? I can't upload them here.

---

<div class="post-metadata">

### Author: ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)
#### Post date: [December 14, 2016, 4:06pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/8 "2016-12-14T16:06:06Z")

</div>

There seems to be a permission problem with some of the Kibana files, that prevents the Kibana server from serving the web UI. This is probably the result of `kibana-plugin` having been called as `root`, thereby setting the wrong owner on some files. Running `chown -R kibana:kibana /usr/share/kibana/optimize` should fix that.

---

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 6:24pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/9 "2016-12-14T18:24:34Z")

</div>

I had to run this with sudo.

Anyway, I also tried to go on the direction of enabling the security.

In stage 4b it says: `Copy the generated system key to the rest of the nodes in the cluster`

I am not really understand to where else should I copy the generated key? What are the rest of the nodes in the cluster?

---

<div class="post-metadata">

### Author: ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)
#### Post date: [December 14, 2016, 6:30pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/10 "2016-12-14T18:30:50Z")

</div>

Elasticsearch has built-in clustering capabilities, which means that it can distribute the storage and processing across multiple cooperating Elasticsearch nodes. This key protects the communication between the nodes in the cluster from tampering. Since it is a symmetric key, it needs to be present on all nodes in the cluster. If you are only running a single-node cluster (which is not recommended for most production scenarios) you don't need to copy the key anywhere.

---

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 6:53pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/11 "2016-12-14T18:53:55Z")

</div>

It is a test environment not distributed. I will implement it in production when time come.  
Thanks

---

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 7:17pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/12 "2016-12-14T19:17:58Z")

</div>

Actually I tried that, I saw that all owner of the files changed to kibana, But still I can't open the kibana.

This what the browser is returning:

```
The 10.235.81.127 page isn’t working

10.235.81.127 redirected you too many times.
```

---

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 7:22pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/13 "2016-12-14T19:22:38Z")

</div>

I tried to unmark the monitoring enable line in both ymls, and I am getting the following from the browser:

This site can’t be reached

10.235.81.127 refused to connect.

---

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 7:45pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/14 "2016-12-14T19:45:38Z")

</div>

Still not able to connect:

This is from the kibana log:

```
{"type":"response","@timestamp":"2016-12-14T19:44:15Z","tags":[],"pid":64840,"method":"get","statusCode":302,"req":{" url":"/login?next=%2Fapp%2Fkibana","method":"get","headers":{"host":"10.235.81.127:5601","connection":"keep-alive","c ache-control":"max-age=0","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebK it/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36","accept":"text/html,application/xhtml+xml,applicatio n/xml;q=0.9,image/webp,*/*;q=0.8","accept-encoding":"gzip, deflate, sdch","accept-language":"en-US,en;q=0.8"},"remote Address":"10.233.161.168","userAgent":"10.233.161.168"},"res":{"statusCode":302,"responseTime":1,"contentLength":9}," message":"GET /login?next=%2Fapp%2Fkibana 302 1ms - 9.0B"}
{"type":"response","@timestamp":"2016-12-14T19:44:15Z","tags":[],"pid":64840,"method":"get","statusCode":302,"req":{" url":"/app/kibana","method":"get","headers":{"host":"10.235.81.127:5601","connection":"keep-alive","cache-control":"m ax-age=0","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML , like Gecko) Chrome/54.0.2840.99 Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,imag e/webp,*/*;q=0.8","accept-encoding":"gzip, deflate, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"10.233 .161.168","userAgent":"10.233.161.168"},"res":{"statusCode":302,"responseTime":3,"contentLength":9},"message":"GET /a pp/kibana 302 3ms - 9.0B"}
```

---

<div class="post-metadata">

### Author: ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)
#### Post date: [December 14, 2016, 7:56pm UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/15 "2016-12-14T19:56:46Z")

</div>

When I try to connect kibana with enabling security,

In the elasticsearch, in the following log file: valuePack\_access.log

I see:

[2016-12-14T21:51:43,308] [rest] [authentication\_failed] origin\_address=[127.0.0.1], principal=[kibana], uri=[/]  
[2016-12-14T21:51:49,190] [rest] [authentication\_failed] origin\_address=[127.0.0.1], principal=[kibana], uri=[/]  
[2016-12-14T21:51:49,374] [rest] [authentication\_failed] origin\_address=[127.0.0.1], principal=[kibana], uri=[/]  
[2016-12-14T21:51:51,840] [rest] [authentication\_failed] origin\_address=[127.0.0.1], principal=[kibana], uri=[/]  
[2016-12-14T21:51:52,363] [rest] [authentication\_failed] origin\_address=[127.0.0.1], principal=[kibana], uri=[/.reporting-\*/esqueue/\_search?version=true]

---

<div class="post-metadata">

### Author: ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)
#### Post date: [December 15, 2016, 10:37am UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/16 "2016-12-15T10:37:00Z")

</div>

This indicates that Kibana itself fails to authenticate with Elasticsearch. After updating the password for the `kibana` user in Elasticsearch, have you also configured Kibana to use that password by setting `elasticsearch.password: "<yournewkibanapassword>"` in the `kibana.yml` (see Step 1 of [https://www.elastic.co/guide/en/x-pack/current/kibana.html](https://www.elastic.co/guide/en/x-pack/current/kibana.html)).

This is necessary, because there are two layers of access that are required for a secured Kibana:

1. Kibana needs to be able to read and write the `.kibana` index and monitoring api. For this the configured `elasticsearch.username` and `elasticsearch.password` are used.
2. The user needs to authenticate with Elasticsearch on each request to read the actual data he wants to visualize in Kibana. This is done using the username/password the user entered when logging in.

---

<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: [January 12, 2017, 10:37am UTC](https://discuss.elastic.co/t/kibana-login-username-password/69016/17 "2017-01-12T10:37:21Z")

</div>

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