# Per Document monitor alert that includes Document findings

**URL:** <https://forum.opensearch.org/t/per-document-monitor-alert-that-includes-document-findings/20759>\
**Category:** OpenSearch\
**Tags:** alerting\
**Created:** [August 9, 2024, 3:46pm UTC](https://forum.opensearch.org/t/per-document-monitor-alert-that-includes-document-findings/20759 "2024-08-09T15:46:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarolynR](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@CarolynR](https://forum.opensearch.org/u/CarolynR)\
**Post date:** [August 9, 2024, 3:46pm UTC](https://forum.opensearch.org/t/per-document-monitor-alert-that-includes-document-findings/20759/1 "2024-08-09T15:46:00Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
OpenSearch 2.11.1  
OpenSearch Dashboards 2.11.1

**Describe the issue** :  
I have defined a per\_document monitor that queries for a specific document id. I want to include fields from the triggering documents in the alert message body. I copied the example Mustache code from

> **[Triggers](https://opensearch.org/docs/latest/observing-your-data/alerting/triggers/#mustache-template-example)**
>
> Triggers

and

> **[Triggers](https://opensearch.org/docs/latest/observing-your-data/alerting/triggers/#mustache-template-example-1)**
>
> Triggers

substituting the field name from my records into the message body.

Unfortunately, when the alert arrives at the destination (I am using email for my testing), these parts of the alert body are empty.

Can you tell me what parts of ctx I can access to pull the document fields into my alerts?

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![gaobinlong](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/gaobinlong/32/5242_2.png) [@gaobinlong](https://forum.opensearch.org/u/gaobinlong)\
**Post date:** [August 13, 2024, 1:25pm UTC](https://forum.opensearch.org/t/per-document-monitor-alert-that-includes-document-findings/20759/2 "2024-08-13T13:25:19Z")

</div>

Could you show the definition of your per document monitor and show the document findings?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/b/b01eb9ab3b56006390fea198810dddb23ae9382e.png)

---

<div class="post-metadata">

**Author:** ![CarolynR](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@CarolynR](https://forum.opensearch.org/u/CarolynR)\
**Post date:** [August 15, 2024, 5:30pm UTC](https://forum.opensearch.org/t/per-document-monitor-alert-that-includes-document-findings/20759/3 "2024-08-15T17:30:57Z")

</div>

I found that the feature I am looking for isn’t available until Opensearch 2.13. Hopefully it is not too painful to upgrade.
