# Elasticsearch-Exporter - All Data

**URL:** <https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981>\
**Category:** Elasticsearch\
**Created:** [August 6, 2015, 3:28pm UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981 "2015-08-06T15:28:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben19](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben19/32/3745_2.png) [@Ben19](https://discuss.elastic.co/u/Ben19)\
**Post date:** [August 6, 2015, 3:28pm UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981/1 "2015-08-06T15:28:04Z")

</div>

Hi, I’ve been using the Elasticsearch-Exporter ([https://github.com/mallocator/Elasticsearch-Exporter](https://github.com/mallocator/Elasticsearch-Exporter))  
to migrate indexes across the network to other nodes and I’ve been trying to  
test exporting the indices to file but am stuck on the command: node  
exporter.js -sh localhost -si index1 -st  
type1 -t file -tf filename

I understand all but the –si and –st switches, ideally I’m  
wanting to export the whole data out of elasticsearch and create a new node  
with that data.

What would the syntax be to export all the data to a file  
please?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 7, 2015, 4:13am UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981/2 "2015-08-07T04:13:29Z")

</div>

Why not just use LS with [this sort of config](https://gist.github.com/markwalkom/8a7201e3f6ea4354ae06)?

---

<div class="post-metadata">

**Author:** ![Ben19](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben19/32/3745_2.png) [@Ben19](https://discuss.elastic.co/u/Ben19)\
**Post date:** [August 7, 2015, 8:25am UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981/3 "2015-08-07T08:25:44Z")

</div>

Happy to try that, how fast does it copy the indexes to the  
other node? Presuming it will copy all the indexes at once?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 7, 2015, 8:32am UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981/4 "2015-08-07T08:32:47Z")

</div>

It only does one at a time.

---

<div class="post-metadata">

**Author:** ![Ben19](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben19/32/3745_2.png) [@Ben19](https://discuss.elastic.co/u/Ben19)\
**Post date:** [August 7, 2015, 10:43am UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981/5 "2015-08-07T10:43:08Z")

</div>

Okay just a little unsure on the .conf file, would I be  
placing this on both nodes? Not exactly sure which nodes will need to go in the  
.conf.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 7, 2015, 10:44am UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981/6 "2015-08-07T10:44:19Z")

</div>

The input is where the data currently is, the output is the one you want to send to. It only needs to be on one server, wherever you have installed Logstash.

Then just run `bin/logstash -f configfile.conf` and watch it go!

---

<div class="post-metadata">

**Author:** ![Ben19](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben19/32/3745_2.png) [@Ben19](https://discuss.elastic.co/u/Ben19)\
**Post date:** [August 7, 2015, 10:51am UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981/7 "2015-08-07T10:51:19Z")

</div>

Okay I’ll try that, I have about 50 indexes on this node,  
since you said it sends one at a time does that mean I’ll have to enter each  
index name at index =\>  
"INDEXNAME\_HERE" or can I enter maybe \* for all?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 7, 2015, 11:18am UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981/8 "2015-08-07T11:18:34Z")

</div>

Not sure if \* will work, try it and let us know!

---

<div class="post-metadata">

**Author:** ![Ben19](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben19/32/3745_2.png) [@Ben19](https://discuss.elastic.co/u/Ben19)\
**Post date:** [August 7, 2015, 12:34pm UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981/9 "2015-08-07T12:34:48Z")

</div>

Happy to do that, BTW the docinfo directive throws an unknown error, is that using the correct one or is my Logstash way old? 😄

EDIT I'm using 1.4.3

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 7, 2015, 10:59pm UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981/10 "2015-08-07T22:59:16Z")

</div>

Oh, this is for 1.5.X only. Sorry that's not clear ☹

---

<div class="post-metadata">

**Author:** ![Ben19](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben19/32/3745_2.png) [@Ben19](https://discuss.elastic.co/u/Ben19)\
**Post date:** [August 10, 2015, 10:31am UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981/11 "2015-08-10T10:31:44Z")

</div>

Okay thanks anyway

---

<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:** [July 5, 2017, 11:56pm UTC](https://discuss.elastic.co/t/elasticsearch-exporter-all-data/26981/12 "2017-07-05T23:56:37Z")

</div>


