email alert content parameters show '< VALUE > MISSING'?
See original GitHub issueHi, guy:
I met a problem, when I used the email alert, adjust the alarm template. But the email content parameters show '< VALUE > MISSING'
is this why?
Example: my configuration:
name: elk-flatline-test
type: flatline
es_host: x.x.x.x
es_port: 9200
index: logstash-test_log-*
threshold: 3
timeframe:
minutes: 1
filter:
- query:
query_string:
query: "status:ERROR"
use_count_query: true
doc_type: logstash-test_log
alert:
- "email"
email:
- "my@email.com"
alert_subject: "Alert {0} at {1}"
alert_subject_args:
- status
- date
include: ['alert_text']
alert_text:
this is {0} at {1}
alert_text_args:
- date
- status
Email alarm content:
title:
Alert <MISSING VALUE> at <MISSING VALUE>
body:
this is <MISSING VALUE> at <MISSING VALUE>
An abnormally low number of events occurred around 2016-09-03 12:49 CST.
Between 2016-09-03 12:48 CST and 2016-09-03 12:49 CST, there were less than 3 events.
@timestamp: 2016-09-03T04:49:16.077075Z
count: 0
key: all
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
How to Fix Missing Campaign Parameters in Google Analytics
In this article, I am going to talk about how to fix missing campaign parameters notifications in Google Analytics.
Read more >BDM/DEI - notifications parameter value is not picking up ...
I would like to display a parameter value in my email notification message and that parameter value should be coming from the parameter...
Read more >ruby on rails - param is missing or the value is empty: message
I tried this just now, and now my terminal says 'Unpermitted parameter: :message'. Do you know happen to know how I can fix...
Read more >Solved: Passing parmeter to Email Notificaiton but not abl...
Generate an event and pass the params of your choice. · Create a notification email script to print the param of your choice...
Read more >Alert Variables | Sumo Logic Docs
Variables are used as parameters that allow you to customize the JSON payload object of your alert notifications. These variables are used to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ah! Elastalert does the grouping. This one is not very intuitive but that value can be accessed with “key” and not whatever query_key is set to.
https://github.com/Yelp/elastalert/blob/master/elastalert/ruletypes.py#L476
Several people have run into this exact issue several times recently, so I’ll add some code to use the actual field name.
Just to confirm, when using flatline rule with
query_key
, I should put the literal word “key” inalert_text_args
? like this:and it’s still not possible to use the actual query key name (“Instance” in the example above)?