# How To get the alert severity in the body of the message , while sending the data via WEBHOOK

**URL:** <https://discuss.elastic.co/t/how-to-get-the-alert-severity-in-the-body-of-the-message-while-sending-the-data-via-webhook/224237>\
**Category:** Kibana\
**Created:** [March 19, 2020, 9:25am UTC](https://discuss.elastic.co/t/how-to-get-the-alert-severity-in-the-body-of-the-message-while-sending-the-data-via-webhook/224237 "2020-03-19T09:25:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthik2](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@karthik2](https://discuss.elastic.co/u/karthik2)\
**Post date:** [March 19, 2020, 9:25am UTC](https://discuss.elastic.co/t/how-to-get-the-alert-severity-in-the-body-of-the-message-while-sending-the-data-via-webhook/224237/1 "2020-03-19T09:25:05Z")

</div>

Hi

I'm creating a threshold alert by using the metric beat module.  
But while creating the event , we need to specify the information in the Body part so that it wil appear once the alert got generated. My question here is how to get the severity of alert .

For Example : If you want to get the metadata then we can write something like this {{ctx.metadata.\*}}

I searched for several ways but not able to get the value some examples which i tried was

{{ctx.payload.metadata.severity}}  
{{ctx.payload.xpack.metadata.severity}}

Could you please let us know how tho get this info.

Kind Regards  
Karthik

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [March 19, 2020, 9:54pm UTC](https://discuss.elastic.co/t/how-to-get-the-alert-severity-in-the-body-of-the-message-while-sending-the-data-via-webhook/224237/2 "2020-03-19T21:54:32Z")

</div>

Are you trying to get the severity from the `event.severity` field? If so, you'll need to configure your inputs to retrieve that field for the result. Then you should be able to access it from the `{{ctx.payload.result}}`.

It might help us if you can share how you created your threshold alert.

---

<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:** [April 16, 2020, 9:54pm UTC](https://discuss.elastic.co/t/how-to-get-the-alert-severity-in-the-body-of-the-message-while-sending-the-data-via-webhook/224237/3 "2020-04-16T21:54:41Z")

</div>

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