Actually I’m truly grateful for your kind help, it’s now working fine.
Am sharing my used code below to help others, and if you’ve any concerns or you see any issue can affect the performance or need to add anything it’ll be appreciated.
Subject:
Graylog Alert || {foreach backlog message}{message.fields.hostname}{end} || {alertCondition.title}
E-Mail Body
GrayLog Alert
############
{foreach backlog message}
*** Source Device ***
{message.fields.hostname}
${message.source}
*** Log Message ***
${message.fields.message}
*** Alert Time ***
{message.timestamp}
{end}
Other Details
Alert Description: {check_result.resultDescription}
Date: {check_result.triggeredAt}
Stream ID: {stream.id}
Stream title: {stream.title}
Stream description: {stream.description}
Alert Condition Title: {alertCondition.title}
{if stream_url}Stream URL: {stream_url}{end}
Triggered condition: {check_result.triggeredCondition}
Thanks