i am trying to set the watcher for the following scenario

if there is no document inserted into index for past n hours, send out an alert. So that we can check if there is any issue in connectivity breakdown between our nodes and elastic search. 

To implement such scenario, i used the following json for replication. 

```
curl -XPUT 'http://10.x.x.1:9200/_watcher/watch/log_error_watch' -d '{
  "trigger" : { "schedule" : { "interval" : "10s" } },
  "input" : {
    "search" : {
      "request" : {
        "indices" : [ "test" ],
        "body" : {
          "query" : {
            "match_all" : {}
          }
        }
      }
    }
  },
  "condition": {
    "array_compare": {
      "ctx.payload.aggregations.test.buckets" : { 
        "path": "doc_count" ,
        "lt": { 
          "value": 1, 
          "quantifier": "some" 
        }
      }
    }
  },
  "actions" : {
    "log_error" : {
      "logging" : {
        "text" : "No data for past 10 seconds"
      }
    }
  }
}'

```

But its not putting alert message in logs. Can someone please help me with the logic inside condition section.