# Text from log line that triggered the alert in the notification email?

**URL:** <https://community.grafana.com/t/text-from-log-line-that-triggered-the-alert-in-the-notification-email/71599>\
**Category:** Alerting\
**Tags:** loki\
**Created:** [September 1, 2022, 1:50pm UTC](https://community.grafana.com/t/text-from-log-line-that-triggered-the-alert-in-the-notification-email/71599 "2022-09-01T13:50:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelr](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@michaelr](https://community.grafana.com/u/michaelr)\
**Post date:** [September 1, 2022, 1:50pm UTC](https://community.grafana.com/t/text-from-log-line-that-triggered-the-alert-in-the-notification-email/71599/1 "2022-09-01T13:50:23Z")

</div>

Is it possible with loki and grafana alert manager to add the actual log line that triggered the alert to the alert email being sent?

---

<div class="post-metadata">

**Author:** ![anon70503803](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@anon70503803](https://community.grafana.com/u/anon70503803)\
**Post date:** [October 6, 2022, 10:28pm UTC](https://community.grafana.com/t/text-from-log-line-that-triggered-the-alert-in-the-notification-email/71599/2 "2022-10-06T22:28:56Z")

</div>

the answer unforutnately is “it depends”. But yes, it is possible with the right setup, and while using the newer Unified Alerting platform:

what version of grafana are you running? and are you using the legacy alerting platform or the new unified alerting platform that debuted in v8 and became the default in v9?

> **[Grafana Alerting: Explore our latest updates in Grafana 9](https://grafana.com/blog/2022/06/14/grafana-alerting-explore-our-latest-updates-in-grafana-9/)**
>
> Grafana Alerting is now the default alerting system in Grafana, and we are introducing significant improvements based on your feedback.

---

<div class="post-metadata">

**Author:** ![michaelr](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@michaelr](https://community.grafana.com/u/michaelr)\
**Post date:** [October 7, 2022, 10:12am UTC](https://community.grafana.com/t/text-from-log-line-that-triggered-the-alert-in-the-notification-email/71599/3 "2022-10-07T10:12:30Z")

</div>

Hello Matt!

Thanks for your answer.  
We are currently at grafana **v9.0.7** and loki **v2.6.1**.  
It’s the first time we are evaluating this stack so went straight ahead with the unified platform.  
Unfortunately, we’ve had some fatal issues with getting alerts to work.  
Here you can find the issues we have: [https://community.grafana.com/t/grafana-alert-manager-works-but-gives-error-in-ui-related-to-loki-query/71602/4](https://community.grafana.com/t/grafana-alert-manager-works-but-gives-error-in-ui-related-to-loki-query/71602/4)

Sincerely,  
Michael
