post2 alerter - dict_object has no attribute 'response' #1516
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
OriHizkiaho
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a rule that alerts using post2 alerter.
I configured the current payload using jinja templates:
The problem I faced is that the http endpoint I monitor may be down for some reason, and then in the elastic logs the relevant record doesn't have the field
http.response
, so I get the following error:I tried these three options as well but none of them work:
Is there an option to give a default value for a field in a template? Or send an alert without the missing field?
Beta Was this translation helpful? Give feedback.
All reactions