Graylog alert (test): Stability check
---
Stream had 2 messages in the last 1 minutes...
- WARN: System is failing
- ERROR: This is an example error message
Browse: http://graylog.abc.com/streams/55f1509dbee8e2841898eb64/search
Payload (JSON)
{"check_result":{"result_description":"Stream had 2 messages in the last 1 minutes...","...":"...","matching_messages":[{"message":"WARN: System is failing","...":"..."},{"message":"ERROR: This is an example error message","...":"..."}],"triggered_condition":{"title":"Stability check","...":"..."}},"stream":{"id":"55f1509dbee8e2841898eb64","title":"test","...":"..."}}
title: |-
Graylog alert ({{ .stream.title }}): {{ .check_result.triggered_condition.title }}
content: |-
{{ .check_result.result_description }}
{{ $messages := .check_result.matching_messages }}
{{ range $message := $messages -}}
- {{ .message }}
{{ end }}
Browse: http://graylog.abc.com/streams/{{.stream.id}}/search
testFieldType: json
testBodyJSON: |-
{
"check_result": {
"result_description": "Stream had 2 messages in the last 1 minutes...",
"...": "...",
"matching_messages": [
{
"message": "WARN: System is failing",
"...": "..."
},
{
"message": "ERROR: This is an example error message",
"...": "..."
}
],
"triggered_condition": {
"title": "Stability check",
"...": "..."
}
},
"stream": {
"id": "55f1509dbee8e2841898eb64",
"title": "test",
"...": "..."
}
}
How to set up a new alert?
Open the “Alerts” page
Add a new notification
Choose the “HTTP Alarm Callback” type
Choose your alert title and use the desired Notify17 notification template hook (e.g. https://hook.notify17.net/api/template/TEMPLATE_API_KEY)