# Include log contents with alert

**URL:** <https://community.grafana.com/t/include-log-contents-with-alert/66977>\
**Category:** Grafana Loki\
**Tags:** alerting\
**Created:** [June 9, 2022, 9:39pm UTC](https://community.grafana.com/t/include-log-contents-with-alert/66977 "2022-06-09T21:39:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dommoly](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@dommoly](https://community.grafana.com/u/dommoly)\
**Post date:** [June 9, 2022, 9:39pm UTC](https://community.grafana.com/t/include-log-contents-with-alert/66977/1 "2022-06-09T21:39:54Z")

</div>

Hi,

I’m setting up alerting using log data in Loki and it’s not clear how to include log content with the alert? The only information I can get into the annotations is the $value of the sum from my expression (1) - what structure is the log data kept in? This seems like a fairly basic requirement but I’m struggling to find any answers…  
Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [June 9, 2023, 9:40pm UTC](https://community.grafana.com/t/include-log-contents-with-alert/66977/2 "2023-06-09T21:40:11Z")

</div>

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