# How schedule works in logstash when moving data from one cluster to the other cluster of elasticsearch

**URL:** <https://discuss.elastic.co/t/how-schedule-works-in-logstash-when-moving-data-from-one-cluster-to-the-other-cluster-of-elasticsearch/200043>\
**Category:** Logstash\
**Created:** [September 18, 2019, 3:13pm UTC](https://discuss.elastic.co/t/how-schedule-works-in-logstash-when-moving-data-from-one-cluster-to-the-other-cluster-of-elasticsearch/200043 "2019-09-18T15:13:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JinnaBalu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jinnabalu/32/27899_2.png) [@JinnaBalu](https://discuss.elastic.co/u/JinnaBalu)\
**Post date:** [September 18, 2019, 3:13pm UTC](https://discuss.elastic.co/t/how-schedule-works-in-logstash-when-moving-data-from-one-cluster-to-the-other-cluster-of-elasticsearch/200043/1 "2019-09-18T15:13:04Z")

</div>

I am trying to move customer index from one cluster to ther other cluster removing some fields. Will `schedule` backups data incrementally.

Data is updated to the input from the application

We want logstash to move data every 5 soconds to output cluster.

Here ios my `logstash.conf`

```auto
input {
    elasticsearch {
      hosts => ["192.31.24.100:9200"]
      index => "customer"
      size => 1000
      scroll => "1m"
      schedule => "5 * * * *"
    }
} 
filter {
    mutate {
      remove_field => ["alternateEmails", "email"]
    }
}
output {
    elasticsearch {
      hosts => ["192.31.24.101:9200"]
      index => "customer-without-email"
      workers => 1
    }
}

```

---

<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:** [October 16, 2019, 3:13pm UTC](https://discuss.elastic.co/t/how-schedule-works-in-logstash-when-moving-data-from-one-cluster-to-the-other-cluster-of-elasticsearch/200043/2 "2019-10-16T15:13:07Z")

</div>

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