Watcher Assistance

Am trying to loop through a particular aggregation bucket-by-bucket and check if its corresponding key matches the value of ctx.payload.second.hits.hits.0._source.host.hostname.

If it matches (and the hits total is > 0 for each input), I'd like to have it execute. Been trying to use script condition, but am not finding success.

I'm using a chain input with two inputs ("first" and "second", respectively) and cannot seem to find the correct syntax.

Any help / example would be appreciated.

After a lot of trial and error, believe I found the culprit. (It's compiling now, but need to test it)

Would still love a reply, in the event that I've got a logic error. If there's any way that I can make this post more clear, please LMK.

OK, I ended up fixing it. You may close out this topic! Happy New Year.

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