Skip to content

Commit

Permalink
SOAR-15940-updating count to better reflect the total items matched
Browse files Browse the repository at this point in the history
  • Loading branch information
rbowden-r7 committed Nov 10, 2023
1 parent 1f3de26 commit 6af5c5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def run(self, params={}):
if not statistical:
return {Output.RESULTS_EVENTS: log_entries, Output.COUNT: len(log_entries)}
else:
return {Output.RESULTS_STATISTICAL: log_entries, Output.COUNT: len(log_entries)}
return {Output.RESULTS_STATISTICAL: log_entries, Output.COUNT: log_entries.get("search_stats", {}).get("events_matched", 0)}

@staticmethod
def parse_query_for_statistical(query: str) -> bool:
Expand Down

0 comments on commit 6af5c5b

Please sign in to comment.