How to move an Index from Server A to B

I'm looking for a way to move a 2.3 GB index from Server A to Server B, that is completely lives on a different domain/host.
I tried logstash code, but it fails at some point and keeps pushing the data infinetly!

input {
  elasticsearch {
        hosts => "https://elasticServer-hosts"
        index => "index-1"
        query => '{ "query": { "match_all": {} }}'
        size => 1
        scroll => "5m"
      }
}
filter {
}
output {
elasticsearch {
    hosts => ["http://elastic-server2:9200"]
    index => "index-1"
  }
    }

Have you tried the other way, of taking the snapshot of that 2.3gb index and restore that on the new server B ?

@KrishnaShah7 No, I didn't know about it

Refer our documentation page and try this approach, and check if it works.

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