# How to perform authentication in kibana?

**URL:** <https://discuss.elastic.co/t/how-to-perform-authentication-in-kibana/98630>\
**Category:** Kibana\
**Created:** [August 29, 2017, 5:58am UTC](https://discuss.elastic.co/t/how-to-perform-authentication-in-kibana/98630 "2017-08-29T05:58:43Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 6, 2017, 7:26am UTC](https://discuss.elastic.co/t/how-to-perform-authentication-in-kibana/98630/21 "2017-09-06T07:26:28Z")

</div>

You don't _need_ it on Logstash, but it's a good idea so you can use the Monitoring functionality.  
You _do_ need it on Elasticsearch and Kibana.

---

<div class="post-metadata">

**Author:** ![abhisek](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@abhisek](https://discuss.elastic.co/u/abhisek)\
**Post date:** [September 6, 2017, 8:49am UTC](https://discuss.elastic.co/t/how-to-perform-authentication-in-kibana/98630/22 "2017-09-06T08:49:37Z")

</div>

Thanks warkolm for the reply

I have installed X-Pack on elasticsearch and start elasticsearch using command `bin/elasticsearch` .

and i have installed X-Pack on kibana and while starting kibana using `bin/kibana` ,  
i'm getting result as mentioned below and kibana is not working :

```
log [08:40:56.376] [info][status][plugin:kibana@5.4.0] Status changed from uninitialized to green - Ready
  log [08:40:56.526] [info][status][plugin:elasticsearch@5.4.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log [08:40:56.541] [info][status][plugin:xpack_main@5.4.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log [08:40:56.582] [warning] You're running Kibana 5.4.0 with some different versions of Elasticsearch. Update Kibana or Elasticsearch to the same version to prevent compatibility issues: v5.4.1 @ 10.1.1.121:9200 (10.1.1.121)
  log [08:40:56.609] [info][status][plugin:graph@5.4.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log [08:40:56.629] [info][status][plugin:monitoring@5.4.0] Status changed from uninitialized to green - Ready
  log [08:40:56.636] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml
  log [08:40:56.645] [info][status][plugin:reporting@5.4.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log [08:40:56.691] [info][status][plugin:elasticsearch@5.4.0] Status changed from yellow to green - Kibana index ready
  log [08:40:56.702] [info][status][plugin:security@5.4.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log [08:40:56.703] [warning][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
  log [08:40:56.725] [warning][security] Session cookies will be transmitted over insecure connections. This is not recommended.
  log [08:40:56.814] [info][status][plugin:searchprofiler@5.4.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log [08:40:56.818] [warning][license][xpack] License information could not be obtained from Elasticsearch. [illegal_argument_exception] No endpoint or operation is available at [_xpack] :: {"path":"/_xpack","statusCode":400,"response":"{\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"No endpoint or operation is available at [_xpack]\"}],\"type\":\"illegal_argument_exception\",\"reason\":\"No endpoint or operation is available at [_xpack]\"},\"status\":400}"}
  log [08:40:56.821] [error][status][plugin:xpack_main@5.4.0] Status changed from yellow to red - X-Pack plugin is not installed on Elasticsearch cluster
  log [08:40:56.823] [error][status][plugin:graph@5.4.0] Status changed from yellow to red - X-Pack plugin is not installed on Elasticsearch cluster
  log [08:40:56.824] [error][status][plugin:reporting@5.4.0] Status changed from yellow to red - X-Pack plugin is not installed on Elasticsearch cluster
  log [08:40:56.825] [error][status][plugin:security@5.4.0] Status changed from yellow to red - X-Pack plugin is not installed on Elasticsearch cluster
  log [08:40:56.826] [error][status][plugin:searchprofiler@5.4.0] Status changed from yellow to red - X-Pack plugin is not installed on Elasticsearch cluster
  log [08:40:56.833] [error][status][plugin:ml@5.4.0] Status changed from uninitialized to red - X-Pack plugin is not installed on Elasticsearch cluster
  log [08:40:56.865] [info][status][plugin:ml@5.4.0] Status changed from red to yellow - Waiting for Elasticsearch
  log [08:40:56.879] [error][status][plugin:tilemap@5.4.0] Status changed from uninitialized to red - X-Pack plugin is not installed on Elasticsearch cluster
  log [08:40:56.884] [error][status][plugin:watcher@5.4.0] Status changed from uninitialized to red - X-Pack plugin is not installed on Elasticsearch cluster
  log [08:40:56.926] [info][status][plugin:console@5.4.0] Status changed from uninitialized to green - Ready
  log [08:40:56.936] [info][status][plugin:ml@5.4.0] Status changed from yellow to green - Ready
  log [08:40:56.945] [info][status][plugin:metrics@5.4.0] Status changed from uninitialized to green - Ready
  log [08:40:57.120] [info][status][plugin:timelion@5.4.0] Status changed from uninitialized to green - Ready
  log [08:40:57.126] [fatal] Port 5601 is already in use. Another instance of Kibana may be running!
FATAL Port 5601 is already in use. Another instance of Kibana may be running!
```

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [September 7, 2017, 4:45am UTC](https://discuss.elastic.co/t/how-to-perform-authentication-in-kibana/98630/23 "2017-09-07T04:45:50Z")

</div>

That log is showing that x-pack isn't installed on the Elasticsearch node that Kibana is pointing to.

Check the value of `elasticsearch.url` in your `kibana.yml` file. If it isn't set, then it defaults to `http://localhost:9200`

Then try accessing `/_cat/plugins` on that ES node, for example:

```auto
curl 'http://localhost:9200/_cat/plugins' -uelastic:changeme

```

That will list which plugins are installed.

---

<div class="post-metadata">

**Author:** ![abhisek](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@abhisek](https://discuss.elastic.co/u/abhisek)\
**Post date:** [September 7, 2017, 4:55am UTC](https://discuss.elastic.co/t/how-to-perform-authentication-in-kibana/98630/24 "2017-09-07T04:55:42Z")

</div>

Thanks Tim for replying,

> [@TimV](#):
>
> Check the value of elasticsearch.url in your kibana.yml file. If it isn’t set, then it defaults to [http://localhost:9200](http://localhost:9200)

It is already there.

> [@TimV](#):
>
> curl '[http://localhost:9200/\_cat/plugins](http://localhost:9200/_cat/plugins)' -uelastic:changeme

and while running this command my output looks like this

`g-p_g4K x-pack 5.4.1`

---

<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:** [October 5, 2017, 4:55am UTC](https://discuss.elastic.co/t/how-to-perform-authentication-in-kibana/98630/25 "2017-10-05T04:55:52Z")

</div>

Closed on October 5, 2017, 4:55am UTC

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

[Previous page](https://discuss.elastic.co/t/how-to-perform-authentication-in-kibana/98630.md?page=1)
