Graylog alert: {{.event.message}}
---
{{.event.message}}{{range$message:=.backlog-}}
- {{.message}}{{end}}
Browse at https://graylog.abc.com/streams/{{index.event.source_streams0}}/search
Rendered
Graylog alert: test: count()=24.0
---
test: count()=24.0
- WARN: System is failing
- ERROR: This is an example error message
Browse at https://graylog.abc.com/streams/5cb8c74906934a00112eacb6/search
Payload (JSON)
{"backlog":[{"message":"WARN: System is failing","...":"..."},{"message":"ERROR: This is an example error message","...":"..."}],"event":{"message":"test: count()=24.0","source_streams":["5cb8c74906934a00112eacb6"],"...":"..."},"...":"..."}
label: Graylog
title: "Graylog alert: {{ .event.message }}"
content: |-
{{ .event.message }}
{{ range $message := .backlog -}}
- {{ .message }}
{{ end }}
Browse at https://graylog.abc.com/streams/{{ index .event.source_streams 0 }}/search
testFieldType: json
testBodyJSON: |-
{
"backlog": [
{
"message": "WARN: System is failing",
"...": "..."
},
{
"message": "ERROR: This is an example error message",
"...": "..."
}
],
"event": {
"message": "test: count()=24.0",
"source_streams": [
"5cb8c74906934a00112eacb6"
],
"...": "..."
},
"...": "..."
}