Hi Jochen,

Thank you for the quick reply.

The full email body is below:
Telephone call overflowed original Hunt Group Original Hunt group: 
${message.fields.CallID1} Overflowed to: ${message.fields.Mid} ########## 
${message.fields} ########## Alert Description: 
${check_result.resultDescription} Date: ${check_result.triggeredAt} Stream 
ID: ${stream.id} Stream title: ${stream.title} Stream description: 
${stream.description} ${if stream_url}Stream URL: ${stream_url}${end} 
Triggered condition: ${check_result.triggeredCondition} ########## ${if 
backlog}Last messages accounting for this alert: ${foreach backlog 
message}${message} ${end}${else}<No backlog> ${end}

body if i'm understanding the link you sent me correctly is it just a case 
of changing it to:
${if backlog}Telephone call overflowed original Hunt Group: ${foreach 
backlog message} Original Hunt group: ${message.fields.CallID1} Overflowed 
to: ${message.fields.Mid} ${end}${else}<No backlog> ${end} ########## Alert 
Description: ${check_result.resultDescription} Date: 
${check_result.triggeredAt} Stream ID: ${stream.id} Stream title: 
${stream.title} Stream description: ${stream.description} ${if 
stream_url}Stream URL: ${stream_url}${end} Triggered condition: 
${check_result.triggeredCondition}

Am i able to get these into the subject too?

Thank you for you assistance.

Many thanks,

Paul. 

On Monday, June 6, 2016 at 11:40:22 AM UTC+1, Jochen Schalanda wrote:
>
> Hi Paul,
>
> please post the complete email template you're using.
>
> Also take note that the "message" object is only available when iterating 
> over the "backlog" collection (see 
> http://docs.graylog.org/en/2.0/pages/streams.html?highlight=backlog#email-alert-callback
> ).
>
> Cheers,
> Jochen
>
> On Monday, 6 June 2016 12:28:04 UTC+2, [email protected] wrote:
>>
>> Hello,
>>
>> I have configured an alert on graylog, but having problems when trying to 
>> display custom fields with in the email message. The email template is set 
>> up as below:
>>
>>
>> Original Hunt group: ${message.fields.CallID1} Overflowed to: 
>> ${message.fields.Mid}
>>
>> I've also tried ${message.fields} but still does not display anything in 
>> the email.
>>
>> Many Thanks,
>>
>> Paul.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/4a708c54-9cf3-4f05-aec7-bae22170b913%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to