Error while transferrring data from one ES cluster to another


(Vilas Reddy Podduturi) #1

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

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

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

Error

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.


(Mark Walkom) #2

You have a bad hostname there somewhere.


(system) #3