I'm trying to compare data in two indices using a slightly altered version of transform from here
curl -v -H "content-type: application/json" -X PUT http://elastic-cluster:9200/_transform/compare_idx -d '{
"id" : "compare_idx",
"source" : {
"index" : [
"index_1",
"index_2"
],
"query" : {
"match_all" : { }
}
},
"dest" : {
"index" : "compare_indices"
},
"pivot" : {
"group_by" : {
"unique-id" : {
"terms" : {
"field" : "_id"
}
}
},
"aggs" : {
"count_indices" : {
"cardinality": {
"field": "_index",
"precision_threshold": 1
}
},
"filter_nulls" : {
"bucket_selector" : {
"buckets_path" : {
"count" : "count_indices"
},
"script" : "params.count == 1"
}
}
}
}
}
'
In the preview mode everything works as expected. However, when I try to create a transform, it's being created fine, but /_cat/_indices doesn't provide me with "compare_indices" index. Documentation says dest index is supposed to be created automatically. Am I doing something wrong?