Hello ,
I would like get all the results in the bucket. for example,
{{ctx.payload.aggregations.host.buckets.0.key}}
returns only first key in the bucket, if we want other keys I can use {{ctx.payload.aggregations.host.buckets.1.key}}
but If I have many how can I get all the results.
{{ctx.payload.aggregations.host.buckets.0.key}}
{{ctx.payload.aggregations.host.buckets.1.key}}
{{ctx.payload.aggregations.host.buckets.2.key}}
....
{{ctx.payload.aggregations.host.buckets.n.key}}
My idea is to use variable called ' i ' through loop condition {{ctx.payload.aggregations.host.buckets.i.key}}
? one more option is is to use streams but can we use in actions? how to get displayed with streams?
can anyone help me with this ? Can we use loops in actions? Do we have anyother options