# Import Kibana Dashboard

**URL:** https://discuss.elastic.co/t/import-kibana-dashboard/209178
**Category:** Kibana
**Created:** [November 24, 2019, 12:23pm UTC](https://discuss.elastic.co/t/import-kibana-dashboard/209178 "2019-11-24T12:23:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![111228](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111228/32/56505_2.png) [@111228](https://discuss.elastic.co/u/111228)
#### Post date: [November 24, 2019, 12:23pm UTC](https://discuss.elastic.co/t/import-kibana-dashboard/209178/1 "2019-11-24T12:23:52Z")

</div>

Good day  
Can Somebody tell me how I Can Import Dashboard in Kibana but on another index  
maybe need some changes in exporting ndjson file ?  
Now I create the same Dashboard every time on every new index.  
How can I backup my existing dashboard and restore it on a new index and make the old index work too.  
I tried to change ndjson file and Import him back but my old index just rewritten

---

<div class="post-metadata">

### Author: ![Zany](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zany/32/50113_2.png) [@Zany](https://discuss.elastic.co/u/Zany)
#### Post date: [November 25, 2019, 5:39am UTC](https://discuss.elastic.co/t/import-kibana-dashboard/209178/2 "2019-11-25T05:39:28Z")

</div>

First, let's check our understanding of the Kibana terms.

- A dashboard contains one to many visualizations.
- Each visualization is tied to an **Index Pattern**.
- Each **Index Pattern** matches one **Index** or many **Indices**.

> how I Can Import Dashboard in Kibana but on another **index**

If you are referring to **Index** , simply create your new Index with the same naming convention as your old Index so that your existing Index Pattern matches the new Index and picks it up.

If you are actually referring to **Index Pattern** , you may follow the steps below:

1. Export all Saved Objects.
2. Open the ndjson in a text editor (e.g. Notepad++).
3. Find and replace the ID (e.g. 123) and Title (e.g. OldIndexPattern) of your old Index Pattern with the ID (e.g. 456) and Title (e.g. NewIndexPattern) of your new Index Pattern.  
 ![Untitled](https://us1.discourse-cdn.com/elastic/original/3X/5/a/5a20eb14e588d994e20470575d25ddeb3996fe27.png)
4. Import the modified Saved Objects ndjson back to Kibana.

---

<div class="post-metadata">

### Author: ![111228](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111228/32/56505_2.png) [@111228](https://discuss.elastic.co/u/111228)
#### Post date: [November 25, 2019, 4:39pm UTC](https://discuss.elastic.co/t/import-kibana-dashboard/209178/3 "2019-11-25T16:39:21Z")

</div>

Thanks a lot it's really working  
I have still question how can I import .ndjson file by a command without GUI

---

<div class="post-metadata">

### Author: ![Zany](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zany/32/50113_2.png) [@Zany](https://discuss.elastic.co/u/Zany)
#### Post date: [December 3, 2019, 5:20am UTC](https://discuss.elastic.co/t/import-kibana-dashboard/209178/4 "2019-12-03T05:20:24Z")

</div>

You are welcome. Please mark my reply as the correct answer if it helped.

> how can I import .ndjson file by a command without GUI

You can use the [Import Objects API](https://www.elastic.co/guide/en/kibana/current/saved-objects-api-import.html).

---

<div class="post-metadata">

### Author: ![111228](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111228/32/56505_2.png) [@111228](https://discuss.elastic.co/u/111228)
#### Post date: [December 3, 2019, 7:14am UTC](https://discuss.elastic.co/t/import-kibana-dashboard/209178/5 "2019-12-03T07:14:30Z")

</div>

I'm used  
curl -X POST "localhost:5601/api/saved\_objects/\_import" -H "kbn-xsrf: true" --form file=@Import.ndjson  
This decision helped me

---

<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 31, 2019, 7:14am UTC](https://discuss.elastic.co/t/import-kibana-dashboard/209178/6 "2019-12-31T07:14:30Z")

</div>

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