Graylog alert (legacy, < 3.1)

Do you want to use Graylog legacy HTTP alerts ?

Template
Graylog alert ({{ .stream.title }}): {{ .check_result.triggered_condition.title }}

---

{{ .check_result.result_description }}

{{ $messages := .check_result.matching_messages }} 
{{ range $message := $messages -}}
- {{ .message }}
{{ end }}

Browse: http://graylog.abc.com/streams/{{.stream.id}}/search
Rendered
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
{
  "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?

  1. Open the "Alerts" page

  2. Add a new notification

  3. Choose the "HTTP Alarm Callback" type

  4. Choose your alert title and use the desired Notify17 notification template hook (e.g. https://hook.notify17.net/api/template/TEMPLATE_API_KEY)