# How to add document details to an Alert Slack Action?

**URL:** <https://discuss.elastic.co/t/how-to-add-document-details-to-an-alert-slack-action/252031>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [October 14, 2020, 11:31am UTC](https://discuss.elastic.co/t/how-to-add-document-details-to-an-alert-slack-action/252031 "2020-10-14T11:31:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chenlrv](https://avatars.discourse-cdn.com/v4/letter/c/c5a1d2/32.png) [@Chenlrv](https://discuss.elastic.co/u/Chenlrv)\
**Post date:** [October 14, 2020, 11:31am UTC](https://discuss.elastic.co/t/how-to-add-document-details-to-an-alert-slack-action/252031/1 "2020-10-14T11:31:40Z")

</div>

Hello,  
I've created an Alert and Action.  
I've defined the Action to be a message to our team's Slack channel.  
The message lacks details of the erroneous document.  
How can I provide aggregation/document details in the Slack message?

Thanks

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [October 14, 2020, 11:35am UTC](https://discuss.elastic.co/t/how-to-add-document-details-to-an-alert-slack-action/252031/2 "2020-10-14T11:35:25Z")

</div>

You can compose the message using the [Mustache](https://mustache.github.io/) template syntax

Check it [here](https://www.elastic.co/guide/en/kibana/current/defining-alerts.html#defining-alerts-actions-details)

---

<div class="post-metadata">

**Author:** ![Chenlrv](https://avatars.discourse-cdn.com/v4/letter/c/c5a1d2/32.png) [@Chenlrv](https://discuss.elastic.co/u/Chenlrv)\
**Post date:** [October 15, 2020, 7:52am UTC](https://discuss.elastic.co/t/how-to-add-document-details-to-an-alert-slack-action/252031/3 "2020-10-15T07:52:22Z")

</div>

@ylasri It's not what I meant, I need aggregation details, or document details.

---

<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 12, 2020, 7:53am UTC](https://discuss.elastic.co/t/how-to-add-document-details-to-an-alert-slack-action/252031/4 "2020-11-12T07:53:05Z")

</div>

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