# Json in alert result (message)

**URL:** <https://discuss.elastic.co/t/json-in-alert-result-message/288145>\
**Category:** SIEM\
**Created:** [November 1, 2021, 2:01pm UTC](https://discuss.elastic.co/t/json-in-alert-result-message/288145 "2021-11-01T14:01:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexey\_Shalin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexey_shalin/32/77531_2.png) [@Alexey\_Shalin](https://discuss.elastic.co/u/Alexey_Shalin)\
**Post date:** [November 1, 2021, 2:01pm UTC](https://discuss.elastic.co/t/json-in-alert-result-message/288145/1 "2021-11-01T14:01:55Z")

</div>

Good Day  
I have alerts in SIEM based on built-in rules. In Action Tab for Rule I setuped : Send Alert to Email and using this :  
{{#context.alerts}}  
Username: {{user.name}}  
Host: {{host.name}}  
{{/context.alerts}}

Everything works perpect. but I would like sent this fields (for example) in json format (for now - it's clear text) for parsing.  
Is it possible ?

---

<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:** [November 29, 2021, 2:02pm UTC](https://discuss.elastic.co/t/json-in-alert-result-message/288145/2 "2021-11-29T14:02:34Z")

</div>

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