hello, I'm trying to configure a watch that get eventologs from winlogbeat, in my condition I compare "ctx.payload.hits.total.value" in order to make actions when is greater than 10, but my condition is always false, I have seen next output in watch history
"condition" : {
"type" : "compare",
"status" : "success"
"met" : false,
"compare" : {
"resolved_values": {
"ctx.payload.hits.total.value" : null
}
}
}
seems I don't get this value from payload
please could someone help me with this issue? I've not idea where could be the problem... thank you in advance
Hello Alexander, thank you for your answer.
I think, then the problem should be the path.. because when I put as condition always my watch work fine.
But I don't find where is wrong... as you can see in picture I need to use as condition hits value that is 58, and the path I have configured is ctx.payload.hits.total.value, could you confirm if this is correct? thank you again for your help.
That's why I mentioned that parameter above, as it changes the data structure of the search response. Explicitely it in the search input in watcher as well and then things should work.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.