GrayLog2 Email Alert Callback Variables

By default Graylog2 seems to use these variables in their email callbacks:

Date: ${check_result.triggeredAt} 
Stream ID: ${stream.id} 
Stream title: ${stream.title} 
Stream URL: ${stream_url} 

      

What others are available?

Is {source} and {path} available? There is no documentation regarding alert callbacks.

+3


source to share


3 answers


Try to use



${foreach backlog message}${message.source}${end}

      

+1


source


Try to use

message.fields.yourfield (e.g. message.fields.path)

      



Source: http://docs.graylog.org/en/1.3/pages/streams.html

+4


source


You should be able to disable any field that is displayed by default when searching.

So for the standard syslog

message.timestamp
message.source
message.message
message.level
message.process_id
message.application_name
message.facility

      

The syntax used in the email template can be found here. https://code.google.com/p/jmte/

0


source







All Articles