# Visualizations - elasticsearch/\_cat/Indices not found

**URL:** <https://discuss.elastic.co/t/visualizations-elasticsearch-cat-indices-not-found/208641>\
**Category:** Kibana\
**Created:** [November 20, 2019, 7:36am UTC](https://discuss.elastic.co/t/visualizations-elasticsearch-cat-indices-not-found/208641 "2019-11-20T07:36:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gergely\_Ujvari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gergely_ujvari/32/46074_2.png) [@Gergely\_Ujvari](https://discuss.elastic.co/u/Gergely_Ujvari)\
**Post date:** [November 20, 2019, 7:36am UTC](https://discuss.elastic.co/t/visualizations-elasticsearch-cat-indices-not-found/208641/1 "2019-11-20T07:36:57Z")

</div>

Using Kibana 7.3.2

I'm trying to create a plugin which would embed saved visualizations. I used the example plugin, and I'm getting the following exception from the embedder:

```auto
http://localhost:5601/epg/elasticsearch/_cat/indices?_=1574234938279&format=json&h=store.size&bytes=b

```

```auto
StatusCodeError {status: 404, displayName: "NotFound", message: "Not Found", path: "/_cat/indices", query: {…}, …}body: {statusCode: 404, error: "Not Found", message: "Not Found"}displayName: "NotFound"message: "Not Found"path: "/_cat/indices"query: {_: 1574234938279, format: "json", h: "store.size", bytes: "b"}response: "{"statusCode":404,"error":"Not Found","message":"Not Found"}"status: 404statusCode: 404toJSON: ƒ ()toString: ƒ ()stack: "Error: Not Found↵ at respond (webpack://%5Bname%5D/./node_modules/elasticsearch-browser/elasticsearch.angular.js?:19233:15)↵ at checkRespForFailure (webpack://%5Bname%5D/./node_modules/elasticsearch-browser/elasticsearch.angular.js?:19194:7)↵ at eval (webpack://%5Bname%5D/./node_modules/elasticsearch-browser/elasticsearch.angular.js?:19809:7)↵ at processQueue (webpack://%5Bname%5D/./node_modules/angular/angular.js?:17297:37)↵ at eval (webpack://%5Bname%5D/./node_modules/angular/angular.js?:17345:27)↵ at Scope.$digest (webpack://%5Bname%5D/./node_modules/angular/angular.js?:18482:15)↵ at Scope.$apply (webpack://%5Bname%5D/./node_modules/angular/angular.js?:18870:24)↵ at done (webpack://%5Bname%5D/./node_modules/angular/angular.js?:12776:47)↵ at completeRequest (webpack://%5Bname%5D/./node_modules/angular/angular.js?:13033:7)↵ at XMLHttpRequest.requestLoaded (webpack://%5Bname%5D/./node_modules/angular/angular.js?:12938:9)" __proto__ : ErrorAbstract "Possibly unhandled rejection: {"msg":"Not Found","path":"/_cat/indices","query":{"_":1574234938279,"format":"json","h":"store.size","bytes":"b"},"statusCode":404,"response":"{\"statusCode\":404,\"error\":\"Not Found\",\"message\":\"Not Found\"}"}"

```

And if I check the `http://localhost:5601/epg/elasticsearch/` url path, Kibana answers with a 404 error.  
What should I do, to enable accessing the `/elasticsearch` path?

---

<div class="post-metadata">

**Author:** ![LizaD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lizad/32/51074_2.png) [@LizaD](https://discuss.elastic.co/u/LizaD)\
**Post date:** [November 20, 2019, 7:40pm UTC](https://discuss.elastic.co/t/visualizations-elasticsearch-cat-indices-not-found/208641/2 "2019-11-20T19:40:19Z")

</div>

Hi @Gergely_Ujvari,

@joshdover will help.

Thanks.

---

<div class="post-metadata">

**Author:** ![joshdover](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshdover/32/42020_2.png) [@joshdover](https://discuss.elastic.co/u/joshdover)\
**Post date:** [November 20, 2019, 8:31pm UTC](https://discuss.elastic.co/t/visualizations-elasticsearch-cat-indices-not-found/208641/3 "2019-11-20T20:31:24Z")

</div>

This changed a little while back and we now do not expose all of Elasticsearch's APIs through that endpoint. The two endpoints available are:

- `/elasticsearch/_msearch`
- `/elasticsearch/{index}/_search`

There is another endpoint provided by the Console plugin that supports sending data to Elasticsearch, but it's not a drop in replacement.

Path: `/api/console/proxy`  
Method: `POST`  
Query parameters:

- method: the HTTP method to send to Elasticsearch
- path: the Elasticsearch API path

For example, you could make the request above by doing a POST request against this URL:  
`/api/console/proxy?method=GET&path=_cat/indices`

If you want to include query parameters in the path sent to Elasticsearch, make sure to use `encodeURIComponent` to correctly encode them.

---

<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:** [December 18, 2019, 8:31pm UTC](https://discuss.elastic.co/t/visualizations-elasticsearch-cat-indices-not-found/208641/4 "2019-12-18T20:31:26Z")

</div>

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