# Push Index to Cloud

**URL:** <https://discuss.elastic.co/t/push-index-to-cloud/264178>\
**Category:** Logstash\
**Created:** [February 12, 2021, 8:33pm UTC](https://discuss.elastic.co/t/push-index-to-cloud/264178 "2021-02-12T20:33:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevezemlicka](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@stevezemlicka](https://discuss.elastic.co/u/stevezemlicka)\
**Post date:** [February 12, 2021, 8:33pm UTC](https://discuss.elastic.co/t/push-index-to-cloud/264178/1 "2021-02-12T20:33:56Z")

</div>

I am doing a proof-of-concept using my first instance of cloud. I have signed up for the trial but am having difficulty figuring out the best way to move my test index from my local server to the cloud instance. I understand there are several different ways to move an index but, from my perspective, it seemed one of the simpler methods is to use logstash to stream that.

I'm having trouble putting together the specifics though. I think am able to do private server to private server without security pretty easily using a method similar to:

> [Reindexing Elasticsearch with Logstash 2.0 · GitHub](https://gist.github.com/markwalkom/8a7201e3f6ea4354ae06)

What is the best strategy to do this to a [elastic.co](http://elastic.co) cloud instance? Where/how do I specify credentials or api key?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 12, 2021, 8:53pm UTC](https://discuss.elastic.co/t/push-index-to-cloud/264178/2 "2021-02-12T20:53:21Z")

</div>

Hi @stevezemlicka

You can take a look at a little [short how to](https://github.com/bvader/howtos/tree/master/ess-migration-tools) I wrote on this very topic. The one you sited is pretty old and still references \_type , (mapping types were removed in 7.x)

Take a look let us know.

For all the option of the elasticsearch output module for logstash see [here](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html)

For all the options of the elasticsearch input module for logstash see [here](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html)

---

<div class="post-metadata">

**Author:** ![stevezemlicka](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@stevezemlicka](https://discuss.elastic.co/u/stevezemlicka)\
**Post date:** [February 12, 2021, 9:54pm UTC](https://discuss.elastic.co/t/push-index-to-cloud/264178/3 "2021-02-12T21:54:19Z")

</div>

Excellent resource, this was precisely what I needed! Thank you for taking the time to put this together and for pointing me in that direction.

---

<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:** [March 12, 2021, 9:55pm UTC](https://discuss.elastic.co/t/push-index-to-cloud/264178/4 "2021-03-12T21:55:13Z")

</div>

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