# How can we connect local kibana to elastic cloud elasticsearch

**URL:** https://discuss.elastic.co/t/how-can-we-connect-local-kibana-to-elastic-cloud-elasticsearch/338379
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [July 14, 2023, 7:36am UTC](https://discuss.elastic.co/t/how-can-we-connect-local-kibana-to-elastic-cloud-elasticsearch/338379 "2023-07-14T07:36:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nishant\_Chauhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nishant_chauhan/32/122587_2.png) [@Nishant\_Chauhan](https://discuss.elastic.co/u/Nishant_Chauhan)
#### Post date: [July 14, 2023, 7:36am UTC](https://discuss.elastic.co/t/how-can-we-connect-local-kibana-to-elastic-cloud-elasticsearch/338379/1 "2023-07-14T07:36:25Z")

</div>

how can we connect local kibana to elastic cloud elasticsearch, like how we can get token.

I tried this.

```auto
GET /_security/enroll/kibana
{
  "error": {
    "root_cause": [
      {
        "type": "security_exception",
        "reason": "Enrollment mode is not enabled. Set [xpack.security.enrollment.enabled] to true, in order to use this API."
      }
    ],
    "type": "security_exception",
    "reason": "Enrollment mode is not enabled. Set [xpack.security.enrollment.enabled] to true, in order to use this API."
  },
  "status": 403
}

```

---

<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: [July 14, 2023, 11:29pm UTC](https://discuss.elastic.co/t/how-can-we-connect-local-kibana-to-elastic-cloud-elasticsearch/338379/2 "2023-07-14T23:29:07Z")

</div>

You can't....what are you trying to accomplish?

This used to be allowed but it is no longer supported.

---

<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: [August 11, 2023, 11:29pm UTC](https://discuss.elastic.co/t/how-can-we-connect-local-kibana-to-elastic-cloud-elasticsearch/338379/3 "2023-08-11T23:29:19Z")

</div>

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