Email Notification - full_message


#1

Hello,
I am running a 3 node cluster, version 2.3.0.

I am receiving GELF messages from Windows event log. The messages I am interested in are .Net errors, so I need the content of full_message to be included in the email notification.

I added the following the the email callback alert -

Full Message:
${message.fields.full_message}

However when an email is triggered there is no full_message -

Full Message:

Any ideas?

Thanks,
Lachlan.


(Jochen) #2

What’s the complete email template you’re using?


#3

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

Source: ${message.source}

Message: ${message}

##########

${message.fields.full_message}

##########

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

{end}{else}
{end} email_receivers: _removed_ sender: _removed_ subject: Graylog alert for stream: {stream.title}: ${check_result.resultDescription}
user_receivers:


Custom Fields in Slack Alert Messages
(Jochen) #4

There you have it. There is no single message object in the templates. You have to iterate over the backlog collection with foreach (see lower part of your template) to access each message in it.

Please read http://docs.graylog.org/en/2.3/pages/streams/alerts.html#email-alert-notification for details.


(system) #5

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