# How to connect local kibana with AWS elasticsearch, what should be the settings in kibana.yml file?

**URL:** https://discuss.elastic.co/t/how-to-connect-local-kibana-with-aws-elasticsearch-what-should-be-the-settings-in-kibana-yml-file/230405
**Category:** Kibana
**Created:** [April 29, 2020, 4:06pm UTC](https://discuss.elastic.co/t/how-to-connect-local-kibana-with-aws-elasticsearch-what-should-be-the-settings-in-kibana-yml-file/230405 "2020-04-29T16:06:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Rahul\_Salunke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_salunke/32/67380_2.png) [@Rahul\_Salunke](https://discuss.elastic.co/u/Rahul_Salunke)
#### Post date: [April 29, 2020, 4:06pm UTC](https://discuss.elastic.co/t/how-to-connect-local-kibana-with-aws-elasticsearch-what-should-be-the-settings-in-kibana-yml-file/230405/1 "2020-04-29T16:06:16Z")

</div>

I have an AWS Elasticsearch on my AWS account with Username and Password.  
Note: It does have an username password for elastic, its open and I am able to connect it via python code.

I want to connect this with kibana 7.4 installed on my local machine, what should be setting for kibana.yml , pasting below what I tried in kibana.yml.

It gives error of xpack like below when run below command from terminal -

`[warning][license][xpack] License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Authentication Exception :: {"path":"/_xpack","statusCode":401,"response":"{\"Message\":\"Your request: '/_xpack' is not allowed.\"}"}`

Can anyone please help with recommended setting to connect AWS ES with Local Kibana??

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [April 29, 2020, 8:25pm UTC](https://discuss.elastic.co/t/how-to-connect-local-kibana-with-aws-elasticsearch-what-should-be-the-settings-in-kibana-yml-file/230405/2 "2020-04-29T20:25:54Z")

</div>

It looks like you are using the default Kibana distribution. This won’t work because it requires the default distribution of Elasticsearch as well (because some features are partially implemented in Elasticsearch). AWS is running its own flavor of Elasticsearch which is not compatible.

You can try running the oss distribution of Kibana: [https://www.elastic.co/downloads/past-releases#kibana-oss](https://www.elastic.co/downloads/past-releases#kibana-oss)

But there is no guarantee this would work because of custom changes of AWS Elasticsearch (I’m not familiar with the specifics).

Side note: [elastic.cloud.co](http://elastic.cloud.co) can use AWS as cloud provider as well and runs the default distribution, so the setup you described would be possible.

---

<div class="post-metadata">

### Author: ![Rahul\_Salunke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_salunke/32/67380_2.png) [@Rahul\_Salunke](https://discuss.elastic.co/u/Rahul_Salunke)
#### Post date: [April 30, 2020, 6:07am UTC](https://discuss.elastic.co/t/how-to-connect-local-kibana-with-aws-elasticsearch-what-should-be-the-settings-in-kibana-yml-file/230405/3 "2020-04-30T06:07:58Z")

</div>

Hi Joe,

Thank for your reply. I did configure OSS distribution of kibana-7.4.2 as it is compatible with AWS ES-7.4.2. We have Username/password authentication on AWS Elasticsearch. and same configured in kibana.yml file. but getting below error now:

log [06:04:43.818] [info][plugins-system] Setting up [2] plugins: [inspector,data]  
log [06:04:43.827] [info][data][plugins] Setting up plugin  
log [06:04:43.829] [info][plugins-system] Starting [1] plugins: [data]  
log [06:04:46.280] [info][status][plugin:apm\_oss@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.699] [info][status][plugin:kibana@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.703] [info][status][plugin:elasticsearch@7.4.2] Status changed from uninitialized to yellow - Waiting for Elasticsearch  
log [06:04:46.708] [info][status][plugin:console@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.710] [info][status][plugin:data@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.716] [info][status][plugin:interpreter@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.723] [info][status][plugin:kibana\_react@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.724] [info][status][plugin:visualizations@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.727] [info][status][plugin:metrics@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.733] [info][status][plugin:region\_map@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.738] [info][status][plugin:tile\_map@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.809] [info][status][plugin:timelion@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.811] [info][status][plugin:ui\_metric@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.813] [info][status][plugin:markdown\_vis@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.814] [info][status][plugin:metric\_vis@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.816] [info][status][plugin:table\_vis@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.817] [info][status][plugin:tagcloud@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.818] [info][status][plugin:vega@7.4.2] Status changed from uninitialized to green - Ready  
log [06:04:46.872] [info][status][plugin:elasticsearch@7.4.2] Status changed from yellow to green - Ready  
log [06:04:46.886] [fatal][root] { Error: [security\_exception] no permissions for [indices:admin/get] and User [name=transport\_admin, backend\_roles=, requestedTenant=null]  
at respond (/opt/kibana-7.4.2-linux-x86\_64/node\_modules/elasticsearch/src/lib/transport.js:349:15)  
at checkRespForFailure (/opt/kibana-7.4.2-linux-x86\_64/node\_modules/elasticsearch/src/lib/transport.js:306:7)  
at HttpConnector. (/opt/kibana-7.4.2-linux-x86\_64/node\_modules/elasticsearch/src/lib/connectors/http.js:173:7)  
at IncomingMessage.wrapper (/opt/kibana-7.4.2-linux-x86\_64/node\_modules/elasticsearch/node\_modules/lodash/lodash.js:4929:19)  
at IncomingMessage.emit (events.js:194:15)  
at endReadableNT (\_stream\_readable.js:1103:12)  
at process.\_tickCallback (internal/process/next\_tick.js:63:19)  
status: 403,  
displayName: 'AuthorizationException',  
message:  
'[security\_exception] no permissions for [indices:admin/get] and User [name=transport\_admin, backend\_roles=, requestedTenant=null]',  
path: '/.kibana',  
query: {},  
body:  
{ error:  
{ root\_cause: [Array],  
type: 'security\_exception',  
reason:  
'no permissions for [indices:admin/get] and User [name=transport\_admin, backend\_roles=, requestedTenant=null]' },  
status: 403 },  
statusCode: 403,  
response:  
'{"error":{"root\_cause":[{"type":"security\_exception","reason":"no permissions for [indices:admin/get] and User [name=transport\_admin, backend\_roles=, requestedTenant=null]"}],"type":"security\_exception","reason":"no permissions for [indices:admin/get] and User [name=transport\_admin, backend\_roles=, requestedTenant=null]"},"status":403}',  
toString: [Function],  
toJSON: [Function] }  
log [06:04:46.890] [info][plugins-system] Stopping all plugins.  
log [06:04:46.890] [info][data][plugins] Stopping plugin

FATAL [security\_exception] no permissions for [indices:admin/get] and User [name=transport\_admin, backend\_roles=, requestedTenant=null] :: {"path":"/.kibana","query":{},"statusCode":403,"response":"{"error":{"root\_cause":[{"type":"security\_exception","reason":"no permissions for [indices:admin/get] and User [name=transport\_admin, backend\_roles=, requestedTenant=null]"}],"type":"security\_exception","reason":"no permissions for [indices:admin/get] and User [name=transport\_admin, backend\_roles=, requestedTenant=null]"},"status":403}"}

Please help me with above error.

Thanks,

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [April 30, 2020, 7:42am UTC](https://discuss.elastic.co/t/how-to-connect-local-kibana-with-aws-elasticsearch-what-should-be-the-settings-in-kibana-yml-file/230405/4 "2020-04-30T07:42:43Z")

</div>

As this question is related to the specifics of AWS Elasticsearch I suggest asking this question in the AWS forum.

---

<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: [May 28, 2020, 7:42am UTC](https://discuss.elastic.co/t/how-to-connect-local-kibana-with-aws-elasticsearch-what-should-be-the-settings-in-kibana-yml-file/230405/5 "2020-05-28T07:42:46Z")

</div>

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