Automatically transfer data with Logstash

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

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