Getting Log Information in the Notification of an alert

I have set up an alert with a webhook to Microsoft Teams. This is working fine so far. However, I want to include relevant information from the log, that triggered the alert, in the message sent to Teams. This information is dynamic and changes with each log, so I cannot insert a static text. Is there any way to include information from the log that triggered the alert in the message?

Hello @Gamer44,

did you already take a look at this thread:

This seems to roughly match your question.

BR,
Andreas