Hi
I am trying to reindex from a remote host
I am running this command -
curl -X POST "http://localhost:9200/_reindex" -H 'Content-Type: application/json' -d'
{
"source": {
"remote": {
"host": "http://remoteip:9200"
},
"index": "mylogs-2019.06.17" <---- Remote cluster index
},
"dest": {
"index": "mylogs-2019.06.17" <---- Local Index
}
}'
{"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[7:18] [reindex] failed to parse field [source]"}],"type":"x_content_parse_exception","reason":"[7:18] [reindex] failed to parse field [source]","caused_by":{"type":"json_parse_exception","reason":"Unexpected character ('<' (code 60)): was expecting comma to separate Object entries\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@58cd6dfa; line: 7, column: 49]"}},"status":400}
Can anyone advise how to fix this? Ive tried content type text/plain but apparently this is not supported.