question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

email alert content parameters show '< VALUE > MISSING'?

See original GitHub issue

Hi, 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:open
  • Created 7 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
Qmandocommented, Oct 4, 2016

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.

0reactions
cfbaocommented, Jun 4, 2020

Just to confirm, when using flatline rule with query_key, I should put the literal word “key” in alert_text_args? like this:

query_key: Instance
alert_text: |
  Instance {0} flatlined
alert_text_args:
  - key

and it’s still not possible to use the actual query key name (“Instance” in the example above)?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found