Watcher with no data in logs


I have a question on condition in watcher. How can I make a condition for triggering a watcher in case there are no data in the logs?
I have a watcher to send notifications if http codes 200 less than 5.
how to make the watcher send a notification according to two conditions: if 200 codes are less than 5 and if 200 codes are not in the logs at all for a certain period of time? (there are no documents in the logs at all)

Hi @kurdit. I think you could use a script condition that accesses the watch payload similar to this one but include an OR (||) operator in the script. Something like this.

      "source" : "return < 5 || == 0",
1 Like

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