Merge pull request #1477 from wagga40/master

Resolves #1450 - Bug in es-rule backend when using "-r" argument
This commit is contained in:
Florian Roth 2021-05-14 09:00:30 +02:00 committed by GitHub
commit 691283616f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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):