# Automatically transfer data with Logstash

**URL:** <https://discuss.elastic.co/t/automatically-transfer-data-with-logstash/159321>\
**Category:** Logstash\
**Created:** [December 4, 2018, 9:29am UTC](https://discuss.elastic.co/t/automatically-transfer-data-with-logstash/159321 "2018-12-04T09:29:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrillebile](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@chrillebile](https://discuss.elastic.co/u/chrillebile)\
**Post date:** [December 4, 2018, 9:29am UTC](https://discuss.elastic.co/t/automatically-transfer-data-with-logstash/159321/1 "2018-12-04T09:29:30Z")

</div>

Hey,

I'm trying to run a cronjob that's transferring new data from one elastic server to another every hour.  
I'm using kibana/elastic 6.5 on the new server where in management i have the logstash pipeline option where i try to run this, but i doesn't seem to run/work:

```
input {

  elasticsearch {

    hosts => ["<old_server>"]

    user => "<username>"

    password => "<password>"

    index => "<index>*"

    schedule => "0 * * * *"

  }

}

filter {

  grok {

    remove_field => ["@timestamp"]

  }

}

output {

  elasticsearch {

    hosts => ["<new_server>"]

    user => "<username>"

    password => "<password>"

    index => "<index>*"

    proxy => "<proxy>"

  }
}

```

I want the indexes to be the same on both servers

---

<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:** [January 1, 2019, 9:29am UTC](https://discuss.elastic.co/t/automatically-transfer-data-with-logstash/159321/2 "2019-01-01T09:29:42Z")

</div>

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