# How to import kibana visualization and dashboard

**URL:** https://discuss.elastic.co/t/how-to-import-kibana-visualization-and-dashboard/87128
**Category:** Kibana
**Created:** [May 25, 2017, 1:11pm UTC](https://discuss.elastic.co/t/how-to-import-kibana-visualization-and-dashboard/87128 "2017-05-25T13:11:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rajegworks](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@rajegworks](https://discuss.elastic.co/u/rajegworks)
#### Post date: [May 25, 2017, 1:11pm UTC](https://discuss.elastic.co/t/how-to-import-kibana-visualization-and-dashboard/87128/1 "2017-05-25T13:11:29Z")

</div>

I have exported kibana visualization and dashboard via kibana ui(machine1). Next I need to import same visualization and dashboard via elasticdump to another kiban(machine2).

Machine1:

es ==\> 2.4.6  
kibana =\> 4.6.4

Machine2:

es ==\> 5.4.0  
kibana =\> 5.4.0

what i did:

```
     1. create elasticsearch index in machine2 same in machine1 
     2. manually create same indexes kibana in machine2.
     2. next I have import visualization and dash board using elasticdump

```

but its not created.

Report:

```
  Thu, 25 May 2017 12:58:41 GMT | starting dump
  Thu, 25 May 2017 12:58:41 GMT | got 1 objects from source file (offset: 0)
  Thu, 25 May 2017 12:58:41 GMT | sent 1 objects to destination elasticsearch, wrote 0
  Thu, 25 May 2017 12:58:41 GMT | got 0 objects from source file (offset: 1)
  Thu, 25 May 2017 12:58:41 GMT | Total Writes: 0
  Thu, 25 May 2017 12:58:41 GMT | dump complete

```

Suggest me what I miss way import kibana dashboard and visualization and pping me any other way to import these.

---

<div class="post-metadata">

### Author: ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)
#### Post date: [May 26, 2017, 5:30pm UTC](https://discuss.elastic.co/t/how-to-import-kibana-visualization-and-dashboard/87128/2 "2017-05-26T17:30:48Z")

</div>

Hi Rajkumar,

The recommended method would be to use the Kibana feature to export saved objects.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/9/8/9814c96bec39964967e56a8850b8ff3b9275340c.png)

And then go to Kibana 5.4 and import the json file you got from 4.6.4.  
NOTE: Exporting saved objects do NOT include the index patterns so you do have to create those yourself which I see you already knew.

Did you already try this approach?

Thanks,  
Lee

---

<div class="post-metadata">

### Author: ![rajegworks](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@rajegworks](https://discuss.elastic.co/u/rajegworks)
#### Post date: [May 27, 2017, 4:14am UTC](https://discuss.elastic.co/t/how-to-import-kibana-visualization-and-dashboard/87128/3 "2017-05-27T04:14:45Z")

</div>

@LeeDr Thanks for your response, I know this, I already did that its works fine, but I need to import via script not UI

my requirements, I am working on remote location, as per client needed requirement, I have create that visualization and remotely import to this.

Suggest me any other way to do this via script or api

---

<div class="post-metadata">

### Author: ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)
#### Post date: [May 30, 2017, 6:25pm UTC](https://discuss.elastic.co/t/how-to-import-kibana-visualization-and-dashboard/87128/4 "2017-05-30T18:25:06Z")

</div>

I have also used Elasticdump and had pretty good success with it. But there's a couple of things you need to understand and account for.

1. You SHOULD export the `mapping` and the `data` in 2 steps (see the elasticdump help) and on the new Kibana you should load the `mapping` before loading the `data`. The reason for this is that Kibana uses some data types that are not the default types and if you import the .kibana data (docs) before loading the mapping, things will break.  
Another way around this is, on the new Kibana instance create and save one of each object type manually then the mapping would be set by Kibana and you could then just use Elasticdump to load the data.

We can see from your output that it didn't load any documents. Maybe you can show your command line?

1. Using Elasticdump (or any other method that writes directly to the .kibana index) is not supported. The structure of data in the .kibana index will change (probably for 6.0) and Kibana will migrate the data in it's index. So loading 5.x saved objects directly into the 6.x .kibana index would probably fail.

There are some open issues to create officially supported APIs in Kibana for creating saved objects. Not sure when these would become available.

Thanks,  
Lee

---

<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: [June 27, 2017, 6:25pm UTC](https://discuss.elastic.co/t/how-to-import-kibana-visualization-and-dashboard/87128/5 "2017-06-27T18:25:25Z")

</div>

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