# Error while transferrring data from one ES cluster to another

**URL:** <https://discuss.elastic.co/t/error-while-transferrring-data-from-one-es-cluster-to-another/26187>\
**Category:** Logstash\
**Created:** [July 23, 2015, 7:10pm UTC](https://discuss.elastic.co/t/error-while-transferrring-data-from-one-es-cluster-to-another/26187 "2015-07-23T19:10:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vilas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vilas/32/613_2.png) [@vilas](https://discuss.elastic.co/u/vilas)\
**Post date:** [July 23, 2015, 7:10pm UTC](https://discuss.elastic.co/t/error-while-transferrring-data-from-one-es-cluster-to-another/26187/1 "2015-07-23T19:10:40Z")

</div>

I'm using to transfer data from one elasticsearch cluster to another using logstash configuration above.  
Getting this error while running the logstash:

**Host Cluster:** Elasticsearch 1.1.1  
**Destination Cluster:** Elasticsearch 1.5.2

**Logstash Script**

```auto
input {
     elasticsearch {
                host => "localhost"
                index => "logstash-*"
     }
}

output {
      elasticsearch {
                host => "xyz.com"
                protocol => "http"
                index => "logstash-%{+YYYY.MM.dd}"
      }
}

```

**Error**

```auto
A plugin had an unrecoverable error. Will restart this plugin.
  Plugin: <LogStash::Inputs::Elasticsearch host=>"1ocalhost", index=>"logstash-enabler-2015.07*", query=>"*", scroll=>"1m">
  Error: gethostbyname: name or service not known {:level=>:error}

```

Thanks.

---

<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:** [July 23, 2015, 9:37pm UTC](https://discuss.elastic.co/t/error-while-transferrring-data-from-one-es-cluster-to-another/26187/2 "2015-07-23T21:37:21Z")

</div>

> [@vilas](#):
>
> name or service not known

You have a bad hostname there somewhere.

---

<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 6, 2017, 5:33am UTC](https://discuss.elastic.co/t/error-while-transferrring-data-from-one-es-cluster-to-another/26187/3 "2017-07-06T05:33:54Z")

</div>

Closed on July 6, 2017, 5:33am UTC


