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