Email Alert Variables - Specifically Message

Hello,

I was curious if it is possible to get the “file” of a message sent through an email alert notification?
Per a graylog message where it has Env, facility, then “File” - I am interested to know if this can be sent?

I’ve looked through the information available here: http://docs.graylog.org/en/2.4/pages/streams/alerts.html#email-alert-notification

and I’ve searched through the community but I didn’t see anything that looked like I could get that file path sent through the email alert.

If it’s not possible thats ok too, just wondering.

Like so many other times in the universe, I did figure it out…

For others that stumble on this in the future here is how the email is crafted.

##########
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}

${if backlog}${foreach backlog message}
${message.message}

${message.fields.file}

${message.fields.env}

${message.fields.name}

${message.fields.source}
${end}${else}

Triggered condition: ${check_result.triggeredCondition}
##########

${if backlog}Last messages accounting for this alert:

{foreach backlog message}{message}

${end}{else}<No backlog>
${end}

There are $ (dollar signs) at the beginning of each of the {content}'s but this post is not showing them.

using proper formatting helps with that:

https://community.graylog.org/faq#format-markdown

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.