diff --git a/docs/reference/watcher/input/http.asciidoc b/docs/reference/watcher/input/http.asciidoc index ca1738b5952d2..d3c982b742505 100644 --- a/docs/reference/watcher/input/http.asciidoc +++ b/docs/reference/watcher/input/http.asciidoc @@ -177,7 +177,7 @@ and restrict the results to documents added within the last five minutes: "host" : "host.domain", "port" : 9200, "path" : "/{{ctx.watch_id}}/_search", - "body" : "{\"query\" : {\"range\": {\"@timestamp\" : {\"from\": \"{{ctx.trigger.triggered_time}}||-5m\",\"to\": \"{{ctx.trigger.triggered_time}}\"}}}}" + "body" : "{\"query\" : {\"range\": {\"@timestamp\" : {\"gte\": \"{{ctx.trigger.triggered_time}}||-5m\",\"lte\": \"{{ctx.trigger.triggered_time}}\"}}}}" } } }