# Exporting and importing Elastic data

**URL:** <https://discuss.elastic.co/t/exporting-and-importing-elastic-data/224470>\
**Category:** Elasticsearch\
**Created:** [March 20, 2020, 6:32pm UTC](https://discuss.elastic.co/t/exporting-and-importing-elastic-data/224470 "2020-03-20T18:32:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Lupisella](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_lupisella/32/46087_2.png) [@Daniel\_Lupisella](https://discuss.elastic.co/u/Daniel_Lupisella)\
**Post date:** [March 20, 2020, 6:32pm UTC](https://discuss.elastic.co/t/exporting-and-importing-elastic-data/224470/1 "2020-03-20T18:32:43Z")

</div>

Hello all,

I recently was using Elastic to do some testing. I exported the data from my running instance of Elastic using the Save, Share, Generate CSV method. I started up a new instance to continue working at home (the lab I was running it in had to wipe the one I was working on) but when I try to import the data by uploading a CSV, I get an error message about the field \_index or \_id already existing. I am essentially wanting to take the data I exported and re-import it but I cannot find anything on this subject. I want to have the filebeat index pattern applied to the file I want to upload and I cannot seem to figure out how to do that as well.

I am sure it something simple but I am stuck. Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Daniel\_Lupisella](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_lupisella/32/46087_2.png) [@Daniel\_Lupisella](https://discuss.elastic.co/u/Daniel_Lupisella)\
**Post date:** [April 5, 2020, 1:56am UTC](https://discuss.elastic.co/t/exporting-and-importing-elastic-data/224470/2 "2020-04-05T01:56:03Z")

</div>

So, since no one could answer me, I did my own digging. You can't simply export CSV and reupload it. Those fields are generated when you upload data. I ended up using elasticdump (great tool) to export my data and re-import it.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 5, 2020, 6:25am UTC](https://discuss.elastic.co/t/exporting-and-importing-elastic-data/224470/3 "2020-04-05T06:25:24Z")

</div>

Yeah. There's nothing OOTB to do this.  
You can use also logstash.

I'd probably use instead a json format than CSV.

---

<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:** [May 3, 2020, 6:25am UTC](https://discuss.elastic.co/t/exporting-and-importing-elastic-data/224470/4 "2020-05-03T06:25:25Z")

</div>

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