In same cluster, logstash can move data from A index to B index?


(Jungmi) #1

To use Input / Output elasticsearch plugin, Can queried data from A index to B index ?
Also query is aggregation query.


(Mark Walkom) #2

Yes, using something like https://gist.github.com/markwalkom/8a7201e3f6ea4354ae06


(Jungmi) #3

I'm failing my query is like this.
query => '{"aggs":{"terms_keyword":{"terms":{"field":"user_keyword","size":0},"aggs":{"key_score":{"terms":{"field":"inquiry_id","size":0},"aggs":{"key_score":{"sum":{"field":"inquiry_score"}}}}}}}}'

it don't input destination index.


(system) #4