Skip to content

Commit 5cf7dfc

Browse files
[Crowdstrike Alert] adjust batch size to API limit (elastic#13862)
The CrowdStrike alert integrations uses 2 API endpoints from CrowdStrike: * /alerts/queries/alerts/v2 → to get the composite IDs of all open alerts with a limit of 10000[1]. The returned composite_ids of the first API call are then sent with a post again to the next endpoint: * /alerts/entities/alerts/v2 → to get the alert details with a limit of 1000[2], which causes the integration to get an HTTP 413 request too large error if there are more than 1000 composite IDs returned from the first endpoint. The current default value for the batch size is 10,000, potentially resulting in requests to the second endpoint being rejected due to too many alert IDs. Fix this by setting the maximum and default to 1000 instead of 10000. [1]https://www.falconpy.io/Service-Collections/Alerts.html#getqueriesalertsv2 [2]https://www.falconpy.io/Service-Collections/Alerts.html#postentitiesalertsv2
1 parent 80f6d75 commit 5cf7dfc

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

packages/crowdstrike/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "1.65.1"
3+
changes:
4+
- description: Adjust alert batch size to 1000 to match the API limit.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/13862
27
- version: "1.65.0"
38
changes:
49
- description: Remove redundant installation instructions.

packages/crowdstrike/data_stream/alert/manifest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ streams:
2626
- name: batch_size
2727
type: integer
2828
title: Batch Size
29-
description: Batch size for the response of the CrowdStrike API. It must be between 1 - 10000.
30-
default: 10000
29+
description: Batch size for the response of the CrowdStrike API. It must be between 1 - 1000.
30+
default: 1000
3131
multi: false
3232
required: true
3333
show_user: false

packages/crowdstrike/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: crowdstrike
22
title: CrowdStrike
3-
version: "1.65.0"
3+
version: "1.65.1"
44
description: Collect logs from Crowdstrike with Elastic Agent.
55
type: integration
66
format_version: "3.3.1"

0 commit comments

Comments
 (0)