Skip to content

Commit ceea9ee

Browse files
Update sort parameter (#3531)
(cherry picked from commit 3503786)
1 parent 96614c9 commit ceea9ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detection_rules/eswrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def _group_events_by_type(events):
336336
def run(self, dsl, indexes, start_time):
337337
"""Collect the events."""
338338
results = self.search(dsl, language='dsl', index=indexes, start_time=start_time, end_time='now', size=5000,
339-
sort='@timestamp:asc')
339+
sort=[{'@timestamp': {'order': 'asc'}}])
340340
events = self._group_events_by_type(results)
341341
return RtaEvents(events)
342342

0 commit comments

Comments
 (0)