# Body email watcher

**URL:** <https://discuss.elastic.co/t/body-email-watcher/192160>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [July 25, 2019, 4:09am UTC](https://discuss.elastic.co/t/body-email-watcher/192160 "2019-07-25T04:09:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alipujaistopo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alipujaistopo/32/50791_2.png) [@alipujaistopo](https://discuss.elastic.co/u/alipujaistopo)\
**Post date:** [July 25, 2019, 4:09am UTC](https://discuss.elastic.co/t/body-email-watcher/192160/1 "2019-07-25T04:09:59Z")

</div>

hello guys, i just wanna ask is there any format to show the "user", "geo", "hits" on body email. thanks

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 1, 2019, 11:59am UTC](https://discuss.elastic.co/t/body-email-watcher/192160/2 "2019-08-01T11:59:33Z")

</div>

Hey,

please provide a little bit more information that just this. A sample watch or a sample watch output would be super useful. I can only assume that you are referring to a search result. You can access the first search result via `ctx.payload.hits.hits.0._source.user` - this access the `user` field in the JSON source.

There are also mustache commands to loop through a list, that might help you to extract all users from a result set.

Please provide more examples when you have more concrete question, as this makes it much easier to help you!

--Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 29, 2019, 11:59am UTC](https://discuss.elastic.co/t/body-email-watcher/192160/3 "2019-08-29T11:59:41Z")

</div>

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