diff --git a/x-pack/docs/en/watcher/actions/email.asciidoc b/x-pack/docs/en/watcher/actions/email.asciidoc index adda53b810d..373904af066 100644 --- a/x-pack/docs/en/watcher/actions/email.asciidoc +++ b/x-pack/docs/en/watcher/actions/email.asciidoc @@ -31,7 +31,7 @@ the watch payload in the email body: "email" : { <2> "to" : "username@example.org", <3> "subject" : "Watcher Notification", <4> - "body" : "{{ctx.payload.hits.total.value}} error logs found" <5> + "body" : "{{ctx.payload.hits.total}} error logs found" <5> } } } diff --git a/x-pack/docs/en/watcher/condition/compare.asciidoc b/x-pack/docs/en/watcher/condition/compare.asciidoc index f6fd06a11be..466cbe05ef6 100644 --- a/x-pack/docs/en/watcher/condition/compare.asciidoc +++ b/x-pack/docs/en/watcher/condition/compare.asciidoc @@ -44,7 +44,7 @@ condition returns `true` if the number of the total hits in the { "condition" : { "compare" : { - "ctx.payload.hits.total.value" : { <1> + "ctx.payload.hits.total" : { <1> "gte" : 5 <2> } }