# Monitor Response

**URL:** <https://forum.opensearch.org/t/monitor-response/2119>\
**Category:** Alerting\
**Created:** [January 24, 2020, 5:28pm UTC](https://forum.opensearch.org/t/monitor-response/2119 "2020-01-24T17:28:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![priyanmurugan](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@priyanmurugan](https://forum.opensearch.org/u/priyanmurugan)\
**Post date:** [January 24, 2020, 5:28pm UTC](https://forum.opensearch.org/t/monitor-response/2119/1 "2020-01-24T17:28:52Z")

</div>

Hi

I am trying to create a monitor with the below extraction query. Which need to list out if any API\_ERROR for every 5 minutes from the logs.

{  
“query”: {  
“match”: {  
“LogType”: {  
“query”: “API\_ERROR”,  
“operator”: “OR”,  
“prefix\_length”: 0,  
“max\_expansions”: 50,  
“fuzzy\_transpositions”: true,  
“lenient”: false,  
“zero\_terms\_query”: “NONE”,  
“auto\_generate\_synonyms\_phrase\_query”: true,  
“boost”: 1  
}  
}  
}  
}

But I am not sure this is correct or not. Because am receiving the alert with the below message,

API\_ERROR Alerts  
Monitor StoreApp API\_ERROR Alerts just entered alert status. Please investigate the issue.

- Trigger: StoreApp API\_ERROR Trigger
- Severity: 1
- Period start: 2020-01-22T20:38:07.747Z
- Period end: 2020-01-22T20:39:07.747Z

Is there anyway to publish the error message in the Trigger result.

---

<div class="post-metadata">

**Author:** ![nuss](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@nuss](https://forum.opensearch.org/u/nuss)\
**Post date:** [February 19, 2020, 7:51pm UTC](https://forum.opensearch.org/t/monitor-response/2119/2 "2020-02-19T19:51:26Z")

</div>

Hi everyone,

I have the same question/problem:  
Is there a way to get the \_source.message of the ctx.results or to say triggered results,  
to send the complete message(s) from the error(s) also via webhook ?

thx in advance

br  
nuss

---

<div class="post-metadata">

**Author:** ![dbbaughe](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dbbaughe](https://forum.opensearch.org/u/dbbaughe)\
**Post date:** [March 7, 2020, 2:01am UTC](https://forum.opensearch.org/t/monitor-response/2119/3 "2020-03-07T02:01:03Z")

</div>

Hi @priyanmurugan,

Are you looking for the actual hits of the query? You can use `{{ctx.results.0}}`. Or is there something wrong with your current message that I’m not seeing?

Hi @nuss,

Similar answer to above, you should be able to access the ctx.results to look at the source of your hits. I don’t believe we show the results of the trigger itself though. Can you give an example of what you’re trying to send?
