-
Notifications
You must be signed in to change notification settings - Fork 0
Methods
Anton edited this page Jan 24, 2020
·
1 revision
You can send data from JSON files using HTTP methods, such as GET, POST or PUT. The path must be given in the -p path argument.
{ "source": { "remote": { "host": "http://my-remote-host.com:9200" }, "index": "clients-2019.*" }, "dest": { "index": "clients-2019" } }
Post requests are sent with --post flag.
{
"source": {
"remote": {
"host": "http://my-remote-host.com:9200"
},
"index": "clients-2019.*"
},
"dest": {
"index": "clients-2019"
}
}The example below will merge monthly indices into a yearly one by using the JSON file above.
logarithm elastic.co -i clients-2019 --post reindex.json -p _reindex