# How to save index from Kibana Dev Console?

**URL:** <https://discuss.elastic.co/t/how-to-save-index-from-kibana-dev-console/191749>\
**Category:** Kibana\
**Created:** [July 23, 2019, 6:57am UTC](https://discuss.elastic.co/t/how-to-save-index-from-kibana-dev-console/191749 "2019-07-23T06:57:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayanti\_Dey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayanti_dey/32/50696_2.png) [@Ayanti\_Dey](https://discuss.elastic.co/u/Ayanti_Dey)\
**Post date:** [July 23, 2019, 6:57am UTC](https://discuss.elastic.co/t/how-to-save-index-from-kibana-dev-console/191749/1 "2019-07-23T06:57:01Z")

</div>

Whenever I'm creating an index from dev console, I'm not being able to find it while selecting an index for discover or visualization.

---

<div class="post-metadata">

**Author:** ![pchakour](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@pchakour](https://discuss.elastic.co/u/pchakour)\
**Post date:** [July 23, 2019, 9:39am UTC](https://discuss.elastic.co/t/how-to-save-index-from-kibana-dev-console/191749/2 "2019-07-23T09:39:21Z")

</div>

Give us more information like your requests in the dev tools.

---

<div class="post-metadata">

**Author:** ![Ayanti\_Dey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayanti_dey/32/50696_2.png) [@Ayanti\_Dey](https://discuss.elastic.co/u/Ayanti_Dey)\
**Post date:** [July 23, 2019, 1:36pm UTC](https://discuss.elastic.co/t/how-to-save-index-from-kibana-dev-console/191749/3 "2019-07-23T13:36:38Z")

</div>

why am I getting this error?  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/b/eba07e5d949b1949878135f3e5c926fad264155d.png)  
Even after making changes,  
I am getting an error.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/5/257924a34dbd88c3ac2301b823fc2b35c7da5a97.png)

---

<div class="post-metadata">

**Author:** ![pchakour](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@pchakour](https://discuss.elastic.co/u/pchakour)\
**Post date:** [July 23, 2019, 2:17pm UTC](https://discuss.elastic.co/t/how-to-save-index-from-kibana-dev-console/191749/4 "2019-07-23T14:17:13Z")

</div>

First error is a warning. Provide a type is deprecated so you can try this instead :  
PUT name/\_doc/2  
{ ... }

In this case you force the identifier to 2, my advise is to let elasticsearch manage you identifiers when it's possible.

If you want update a document you have to use this:  
POST name/\_update/2  
{  
"doc" : {  
"name" : "new\_name"  
}  
}

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [July 23, 2019, 3:54pm UTC](https://discuss.elastic.co/t/how-to-save-index-from-kibana-dev-console/191749/5 "2019-07-23T15:54:31Z")

</div>

To use an Elasticsearch index in Kibana, you need to [create an index pattern](https://www.elastic.co/guide/en/kibana/7.2/index-patterns.html).

---

<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 20, 2019, 3:54pm UTC](https://discuss.elastic.co/t/how-to-save-index-from-kibana-dev-console/191749/6 "2019-08-20T15:54:43Z")

</div>

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