Resolves #1450 - Bug in es-rule backend when using "-r" argument

This commit is contained in:
wagga40 2021-05-13 21:47:22 +02:00
parent 33d9d6876e
commit 534898a3ce

View File

@ -1381,6 +1381,8 @@ class ElasticSearchRuleBackend(ElasticsearchQuerystringBackend):
rule.update({"threshold": self.rule_threshold})
if references:
rule.update({"references": references})
self.rule_type = "query"
self.rule_threshold = {}
return json.dumps(rule)
class KibanaNdjsonBackend(ElasticsearchQuerystringBackend, MultiRuleOutputMixin):