mirror of
https://github.com/valitydev/SigmaHQ.git
synced 2024-11-07 09:48:58 +00:00
fix missing condition when unique plus timeframe
This commit is contained in:
parent
36ba9f78da
commit
e8a7c5f7b9
@ -245,7 +245,9 @@ class ElasticsearchDSLBackend(RulenameCommentMixin, ElasticsearchWildcardHandlin
|
||||
dateField = self.sigmaconfig.config['dateField']
|
||||
if self.interval:
|
||||
if 'bool' not in self.queries[-1]['query']['constant_score']['filter']:
|
||||
saved_simple_query = self.queries[-1]['query']['constant_score']['filter']
|
||||
self.queries[-1]['query']['constant_score']['filter'] = {'bool': {'must': []}}
|
||||
self.queries[-1]['query']['constant_score']['filter']['bool']['must'].append(saved_simple_query)
|
||||
if 'must' not in self.queries[-1]['query']['constant_score']['filter']['bool']:
|
||||
self.queries[-1]['query']['constant_score']['filter']['bool']['must'] = []
|
||||
|
||||
@ -748,7 +750,7 @@ class ElastalertBackend(MultiRuleOutputMixin, ElasticsearchQuerystringBackend):
|
||||
if idx == agg.aggfunc:
|
||||
funcname = name
|
||||
break
|
||||
raise NotImplementedError("%s : The '%s' aggregation operator is not yet implemented for this backend"%(self.title, funcname))
|
||||
raise NotImplementedError("%s : The '%s' aggregation operator is not yet implemented for this backend"%(self.title, funcname))
|
||||
|
||||
def convertLevel(self, level):
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user