How to Get "message" field from elasticsearch logs into Grafana alert emails?

Hi folks,

We have pacemaker running on our boxes. I need to pull the logs into grafana and create the alerts rules.

I am using lucene query to get the details from pacemaker.logs file.
I have a “message” field available in the logs.

Is there a way to pull the complete message and print that in a Grafana alert email ?

I’m looking for something like this:
A message label getting created with value pulled from logs.
Eg: Message: “fatal failure occured”