# Send \_doc field values in email via watcher

**URL:** <https://discuss.elastic.co/t/send-doc-field-values-in-email-via-watcher/180715>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [May 12, 2019, 6:19pm UTC](https://discuss.elastic.co/t/send-doc-field-values-in-email-via-watcher/180715 "2019-05-12T18:19:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hammad\_Ali\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hammad_ali_khan/32/46028_2.png) [@Hammad\_Ali\_Khan](https://discuss.elastic.co/u/Hammad_Ali_Khan)\
**Post date:** [May 12, 2019, 6:19pm UTC](https://discuss.elastic.co/t/send-doc-field-values-in-email-via-watcher/180715/1 "2019-05-12T18:19:48Z")

</div>

Hi,  
I am using ELK stack on ElasticCloud via AWS. I am sending emails to client using **Watcher** , alert is generated when fuel level goes below certain threshold. I want to send **siteName** in email as I am using index like site-\* which is like [site-siteA, site-siteB, site-siteC, ...]. How come i am able to achieve this I saw **ctx** but wasn't able to do so.  
Regards,  
HAK

---

<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:** [May 22, 2019, 8:16am UTC](https://discuss.elastic.co/t/send-doc-field-values-in-email-via-watcher/180715/2 "2019-05-22T08:16:18Z")

</div>

sorry, but I do not properly understand the requirement? Where is `siteName` coming from? From the index name or from the content of a document?

--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:** [June 19, 2019, 8:16am UTC](https://discuss.elastic.co/t/send-doc-field-values-in-email-via-watcher/180715/3 "2019-06-19T08:16:20Z")

</div>

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