mirror of
https://github.com/valitydev/SigmaHQ.git
synced 2024-11-06 09:25:17 +00:00
Resolves #1450 - Bug in es-rule backend when using "-r" argument
This commit is contained in:
parent
33d9d6876e
commit
534898a3ce
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user