# Authorization errors trying to connect Kibana 4.1.2 to ES 1.5.2

**URL:** <https://discuss.elastic.co/t/authorization-errors-trying-to-connect-kibana-4-1-2-to-es-1-5-2/34702>\
**Category:** Kibana\
**Created:** [November 16, 2015, 5:02pm UTC](https://discuss.elastic.co/t/authorization-errors-trying-to-connect-kibana-4-1-2-to-es-1-5-2/34702 "2015-11-16T17:02:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shane\_Witbeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shane_witbeck/32/2803_2.png) [@Shane\_Witbeck](https://discuss.elastic.co/u/Shane_Witbeck)\
**Post date:** [November 16, 2015, 5:02pm UTC](https://discuss.elastic.co/t/authorization-errors-trying-to-connect-kibana-4-1-2-to-es-1-5-2/34702/1 "2015-11-16T17:02:04Z")

</div>

I'm struggling to get Kibana (kibana-4.1.2-darwin-x64) to connect to ES 1.5.2 on the same machine. I'm using default configuration for both. I need to stick with ES 1.5.2 but I'm flexible with the version of Kibana. When I run bin/kibana I get the following errors then Kibana stops:

```
{
  "name": "Kibana",
  "hostname": "APNKG3QPC48112",
  "pid": 31975,
  "level": 50,
  "err": {
    "message": "Authorization Exception",
    "name": "Error",
    "stack": "Error: Authorization Exception\n at respond (/Users/switbe/tools/kibana-4.1.2-darwin-x64/src/node_modules/elasticsearch/src/lib/transport.js:235:15)\n at checkRespForFailure (/Users/switbe/tools/kibana-4.1.2-darwin-x64/src/node_modules/elasticsearch/src/lib/transport.js:203:7)\n at HttpConnector.<anonymous> (/Users/switbe/tools/kibana-4.1.2-darwin-x64/src/node_modules/elasticsearch/src/lib/connectors/http.js:156:7)\n at IncomingMessage.bound (/Users/switbe/tools/kibana-4.1.2-darwin-x64/src/node_modules/elasticsearch/node_modules/lodash-node/modern/internals/baseBind.js:56:17)\n at IncomingMessage.emit (events.js:117:20)\n at _stream_readable.js:944:16\n at process._tickCallback (node.js:442:13)"
  },
  "msg": "",
  "time": "2015-11-16T16:44:43.290Z",
  "v": 0
}
{
  "name": "Kibana",
  "hostname": "APNKG3QPC48112",
  "pid": 31975,
  "level": 60,
  "err": {
    "message": "Authorization Exception",
    "name": "Error",
    "stack": "Error: Authorization Exception\n at respond (/Users/switbe/tools/kibana-4.1.2-darwin-x64/src/node_modules/elasticsearch/src/lib/transport.js:235:15)\n at checkRespForFailure (/Users/switbe/tools/kibana-4.1.2-darwin-x64/src/node_modules/elasticsearch/src/lib/transport.js:203:7)\n at HttpConnector.<anonymous> (/Users/switbe/tools/kibana-4.1.2-darwin-x64/src/node_modules/elasticsearch/src/lib/connectors/http.js:156:7)\n at IncomingMessage.bound (/Users/switbe/tools/kibana-4.1.2-darwin-x64/src/node_modules/elasticsearch/node_modules/lodash-node/modern/internals/baseBind.js:56:17)\n at IncomingMessage.emit (events.js:117:20)\n at _stream_readable.js:944:16\n at process._tickCallback (node.js:442:13)"
  },
  "msg": "",
  "time": "2015-11-16T16:44:43.291Z",
  "v": 0
}
```

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 16, 2015, 8:18pm UTC](https://discuss.elastic.co/t/authorization-errors-trying-to-connect-kibana-4-1-2-to-es-1-5-2/34702/2 "2015-11-16T20:18:24Z")

</div>

It looks like your Elasticsearch requires authentication but you haven't configured Kibana to provide any credentials. Or they're insufficient.

---

<div class="post-metadata">

**Author:** ![Shane\_Witbeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shane_witbeck/32/2803_2.png) [@Shane\_Witbeck](https://discuss.elastic.co/u/Shane_Witbeck)\
**Post date:** [November 16, 2015, 9:15pm UTC](https://discuss.elastic.co/t/authorization-errors-trying-to-connect-kibana-4-1-2-to-es-1-5-2/34702/3 "2015-11-16T21:15:51Z")

</div>

Thanks for the reply. I've got it working locally but running into the same issue when connecting through a proxy to AWS Elasticsearch. The proxy I'm using is referenced here: [https://forums.aws.amazon.com/thread.jspa?threadID=218214](https://forums.aws.amazon.com/thread.jspa?threadID=218214)

I can use curl to hit the AWS ES REST api but Kibana fails.

Do you have any guidance here?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 16, 2015, 9:34pm UTC](https://discuss.elastic.co/t/authorization-errors-trying-to-connect-kibana-4-1-2-to-es-1-5-2/34702/4 "2015-11-16T21:34:20Z")

</div>

I'd use Wireshark to compare Kibana's HTTP requests to curl's.

---

<div class="post-metadata">

**Author:** ![mooreds](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@mooreds](https://discuss.elastic.co/u/mooreds)\
**Post date:** [January 12, 2016, 3:36am UTC](https://discuss.elastic.co/t/authorization-errors-trying-to-connect-kibana-4-1-2-to-es-1-5-2/34702/5 "2016-01-12T03:36:18Z")

</div>

Hi Shane,

Did you ever get this working? I'm running into what seems to be the same issue--I've used that node server to proxy requests to an amazon elastic search cluster, and can run curl commands but not kibana.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![Shane\_Witbeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shane_witbeck/32/2803_2.png) [@Shane\_Witbeck](https://discuss.elastic.co/u/Shane_Witbeck)\
**Post date:** [January 12, 2016, 6:06am UTC](https://discuss.elastic.co/t/authorization-errors-trying-to-connect-kibana-4-1-2-to-es-1-5-2/34702/6 "2016-01-12T06:06:21Z")

</div>

Yes. You should be able to connect to the AWS ES Kibana plugin once you start the proxy. One thing that bit me is that you need to make sure to include the trailing slash. So /\_plugin/kibana/ not /\_plugin/kibana.

I don't remember if I got a local instance of Kibana working with AWS ES but if you're attempting that be sure to update the Kibana configuration as explained here: [http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-kibana](http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-kibana)

HTH,  
Shane

---

<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 6, 2017, 2:05pm UTC](https://discuss.elastic.co/t/authorization-errors-trying-to-connect-kibana-4-1-2-to-es-1-5-2/34702/7 "2017-07-06T14:05:15Z")

</div>


