Skip to content

Commit

Permalink
Fix butch size for event search in the Indicator Match rule. (#138356) (
Browse files Browse the repository at this point in the history
#138404)

* Make event list count for 3000

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 42b7987)

Co-authored-by: Khristinin Nikita <nikita.khristinin@elastic.co>
  • Loading branch information
kibanamachine and nkhristinin authored Aug 9, 2022
1 parent 8e1e63f commit 1d61738
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { getQueryFilter } from '../../../../../common/detection_engine/get_query
import { singleSearchAfter } from '../single_search_after';
import { buildEventsSearchQuery } from '../build_events_query';

export const MAX_PER_PAGE = 9000;
export const MAX_PER_PAGE = 3000;

export const getEventList = async ({
services,
Expand Down Expand Up @@ -47,7 +47,7 @@ export const getEventList = async ({
services,
ruleExecutionLogger,
filter,
pageSize: Math.ceil(Math.min(tuple.maxSignals, calculatedPerPage)),
pageSize: calculatedPerPage,
primaryTimestamp,
secondaryTimestamp,
sortOrder: 'desc',
Expand Down

0 comments on commit 1d61738

Please sign in to comment.