2017-09-12 3 views
0

Ich erstelle Warnungen mit diesem Thema Aber ich verstehe nicht, warum einige Informationen nicht senden. Wie diese Variable $ {message.fields.name} und eine ähnliche.Graylog Probleme mit erstellen Alarmmeldungen

Dies ist meine Bedingungen enter image description here

ich diese Vorlage verwendet

Date: ${check_result.triggeredAt} 
Stream ID: ${stream.id} 
Stream title: ${stream.title} 
${if stream_url}Stream URL: ${stream_url}${end} 

${if backlog}Last messages accounting for this alert: 
${foreach backlog message} 
Message: ${message.message} 
Source: ${message.source} 
Full Message: ${message.fields.full_message} 
${end}${else}<No backlog> 
${end} 

Und haben dies in der Post

########## 
Alert Description: Dummy alert to test notifications 
Date: 2017-09-11T18:48:33.664Z 
Stream ID: 59b695542ab79c0001554b85 
Stream title: New Stream 
Stream description: Test notifications 
Alert Condition Title: Test Alert 
Stream URL: https://mysite 

Triggered condition: d91e0fa5-867c-4cf1-bf0e-2b5d2fdd19f9:dummy={Dummy alert to test notifications}, stream:={59b695542ab79c0001554b85: "New Stream"} 
########## 
Message: Full Message: 

Wie diese Benachrichtigungen erstellen?

Antwort

0

Ich weiß nicht wie, aber jetzt seine Arbeit.

${if backlog} 
You have new request: 
${foreach backlog message} 
status: ${message.fields.status} 
firstname: ${message.fields.name_first} 
lastname: ${message.fields.name_last} 
phone: ${message.fields.phone} 
email: ${message.fields.email} 
source: ${message.fields.source} 
timestamp: ${message.fields.timestamp} 
${end} 
${else} 
Empty backlog 
${end} 
Verwandte Themen