Create new index with especific documents

Hi

I am triying to copy specific documents from one index to a new index by the following syntax:

curl -X POST "localhost:9200/_reindex" -H 'Content-Type: application/json' -d'
{
"source": {
"index": "2018.12.19",
"type": "json",
"query": {
"match": {
"Vendor" : "Cisco"
}
}
},
"dest": {
"index": "2018.12.19new"
}
}'

But when I execute this, always shows that does not math anything and it does not create the new index, but if I search in Kibana in this index i can view events with Vendor:Cisco. Anyone knows why is happening this? Thanks

I solved this problem by removing "type": "json".

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