# OpsGenie Integration with elasticsearch

**URL:** <https://discuss.elastic.co/t/opsgenie-integration-with-elasticsearch/108184>\
**Category:** Elasticsearch\
**Created:** [November 17, 2017, 6:22pm UTC](https://discuss.elastic.co/t/opsgenie-integration-with-elasticsearch/108184 "2017-11-17T18:22:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael.Craig](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Michael.Craig](https://discuss.elastic.co/u/Michael.Craig)\
**Post date:** [November 17, 2017, 6:22pm UTC](https://discuss.elastic.co/t/opsgenie-integration-with-elasticsearch/108184/1 "2017-11-17T18:22:14Z")

</div>

Hello  
I am trying to print out the value which triggered my watcher to fire on OpsGenie.

I can put the following fields into the alert fields as seen in the image

 ![upload](https://us1.discourse-cdn.com/elastic/original/3X/2/3/23ed226c3f867ffda27b14e6a778109c2d1a61bf.png)

After studying the json object in the logs for this particular alert I've been trying to put the following in the message box, which is specific to the query I am doing in elasticsearch. However OpsGenie is returning null.

Trigger Value: {{\_\_payload.aggregations.\_stats\_minutely\_searches.sum}}

I assume this is not how it is done since it not working  
Thanks,  
Michael

---

<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:** [December 15, 2017, 6:22pm UTC](https://discuss.elastic.co/t/opsgenie-integration-with-elasticsearch/108184/2 "2017-12-15T18:22:29Z")

</div>

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