How to receive the log contents by e-mail alert

Hello.

We collect and alert logs using Grafana 10 version and Loki.
The part I want to get the answer to is as follows.

For example, When api1_log has the following four lines of logs
[2023-09-27 11:30:23][DEBUG] ERROR can’t connect server1
[2023-09-27 11:30:33][DEBUG] ERROR can’t connect server2
[2023-09-27 11:33:23][DEBUG] Success establish connection server1
[2023-09-27 11:33:33][DEBUG] ERROR can’t connect server2

Currently, alert requires that if ERROR exists every minute, if (condition A) is greater than 0 (condition B), e-mail will come immediately. (Evaluate Every 1m For 0s )

The contents of the mail at 11:31 are as follows
=>
Summary
test summary
Description
test description
Values
B=2

Labels
alertname test alert
filename /sw/test/logs/api.log
grafana_folder test folder
job api1_log

The contents of the mail I want are as follows.
=>
Summary
test summary
Description
test description
Values
[2023-09-27 11:30:23][DEBUG] ERROR can’t connect server1
[2023-09-27 11:30:33][DEBUG] ERROR can’t connect server2

Labels
alertname test alert
filename /sw/test/logs/api.log
grafana_folder test folder
job api1_log

I wonder if there is a way to do this.
give thanks in advance.