From aaf4cb5288af625bbb3419e3838a2a1a89399c60 Mon Sep 17 00:00:00 2001 From: debadair Date: Wed, 15 Jul 2015 14:17:48 -0700 Subject: [PATCH] Fixed typos in examples. Closes #issue-43. Original commit: elastic/x-pack-elasticsearch@c76c012f3dc50b7c5730f9edb727ff077030fd5c --- watcher/docs/reference/input/http.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watcher/docs/reference/input/http.asciidoc b/watcher/docs/reference/input/http.asciidoc index dd562612fb6..aa46d859c01 100644 --- a/watcher/docs/reference/input/http.asciidoc +++ b/watcher/docs/reference/input/http.asciidoc @@ -84,7 +84,7 @@ You can use the full Elasticsearch {ref}/query-dsl.html[Query DSL] to perform mo "host" : "host.domain", "port" : 9200, "path" : "/idx/_search", - "body" : "\"query\" : { \"match\" : { \"category\" : \"event\"}" + "body" : "{\"query\" : { \"match\" : { \"category\" : \"event\"}}}" } } } @@ -107,7 +107,7 @@ 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\" : {\"from\": \"{{ctx.trigger.triggered_time}}||-5m\",\"to\": \"{{ctx.trigger.triggered_time}}\"}}}}" } } }