Graylog - Notifications

With the Graylog notifications feature, we are preparing email templates to send an alert messages with different error levels.

Please create a notifications listed below.

1. CDMP Admin Panel Error Alert Email

image.png

Body Template

${if backlog}Last messages accounting for this alert:
${foreach backlog message}
*********************************
Link: https://graylog.yourdomain.com/messages/${message.index}/${message.id}
MessageID: ${message.id}
Message: ${message.message}
Source: ${message.source}
TimeStamp: ${message.timestamp}
AccountID: ${message.fields.AccountId}
UserID: ${message.fields.UserId}
Facility: ${message.fields.facility}
Level: ${message.fields.level}
MachineName: ${message.fields.machineName}
Full Message: ${message.fields.full_message}
Exception: ${message.fields.ExceptionMessage}
${end}${else}<No backlog>
${end}


2. CDMP Service Error Alert Email - Level 2 FATAL

image.png

Body Template

${if backlog}Last messages accounting for this alert:
${foreach backlog message}
*********************************
Link: https://graylog.yourdomain.com/messages/${message.index}/${message.id}
MessageID: ${message.id}
Message: ${message.message}
Source: ${message.source}
TimeStamp: ${message.timestamp}
AccountID: ${message.fields.AccountId}
UserID: ${message.fields.UserId}
Facility: ${message.fields.facility}
Level: ${message.fields.level}
MachineName: ${message.fields.machineName}
Full Message: ${message.fields.full_message}
Exception: ${message.fields.ExceptionMessage}
${end}${else}<No backlog>
${end}


3. CDMP Service Error Alert Email - Level 3 ERROR

image.png

Body Template

${if backlog}Last messages accounting for this alert:
${foreach backlog message}
*********************************
Link: https://graylog.yourdomain.com/messages/${message.index}/${message.id}
MessageID: ${message.id}
Message: ${message.message}
Source: ${message.source}
TimeStamp: ${message.timestamp}
AccountID: ${message.fields.AccountId}
UserID: ${message.fields.UserId}
Facility: ${message.fields.facility}
Level: ${message.fields.level}
MachineName: ${message.fields.machineName}
Full Message: ${message.fields.full_message}
Exception: ${message.fields.ExceptionMessage}
${end}${else}<No backlog>
${end}


4. CDMP Service Error Alert Email - Level 4 WARNING

image.png

Body Template

${if backlog}Last messages accounting for this alert:
${foreach backlog message}
*********************************
Link: https://graylog.yourdomain.com/messages/${message.index}/${message.id}
MessageID: ${message.id}
Message: ${message.message}
Source: ${message.source}
TimeStamp: ${message.timestamp}
AccountID: ${message.fields.AccountId}
UserID: ${message.fields.UserId}
Facility: ${message.fields.facility}
Level: ${message.fields.level}
MachineName: ${message.fields.machineName}
Full Message: ${message.fields.full_message}
Exception: ${message.fields.ExceptionMessage}
${end}${else}<No backlog>
${end}

5. Email Postgres Errors

image.png

Body Template

${if backlog}Last messages accounting for this alert:
${foreach backlog message}
*********************************
MessageID: ${message.id}
Message: ${message.message}
Source: ${message.source}
TimeStamp: ${message.timestamp}
AccountID: ${message.fields.AccountId}
UserID: ${message.fields.UserId}
${end}${else}<No backlog>
${end}