Skip to content

Event Streams

The Event Streams service collection provides operations for discovering and maintaining event stream connections in your CrowdStrike Falcon environment. List available streams and refresh active stream sessions to maintain continuous event ingestion.

LanguageLast Update
Pythonv1.6.5
PowerShellv2.2.9
Gov0.22.0
TypeScriptv0.6.0
Rustv0.7.1
Rubyv1.4.0
Sample Code

OperationDescription
listAvailableStreamsOAuth2
list_available_streams
Discover all event streams in your environment
refreshActiveStreamSession
refresh_active_stream
Refresh an active event stream.

Discover all event streams in your environment

Method GET
Route /sensors/entities/datafeed/v2
Scope Event streams: READ
PEP 8 list_available_streams
appId query · string
Label that identifies your connection. Max: 32 alphanumeric characters (a-z, A-Z, 0-9).
format query · string
Format for streaming events. Valid values:
Available values (2)
jsonflatjson
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import EventStreams
falcon = EventStreams(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.list_available_streams(app_id="string", format="string")
print(response)
[
{
"dataFeedURL": "string",
"refreshActiveSessionInterval": 0,
"refreshActiveSessionURL": "string",
"sessionToken": {}
}
]


Refresh an active event stream.

Method POST
Route /sensors/entities/datafeed-actions/v1/{partition}
Scope Event streams: READ
PEP 8 refresh_active_stream
action_name query · string
Action name. Allowed value:
Available values (2)
isrefresh_active_stream_session
appId query · string
Label that identifies your connection. Max: 32 alphanumeric characters (a-z, A-Z, 0-9).
partition path · integer
Partition to request data for.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import EventStreams
falcon = EventStreams(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.refresh_active_stream(action_name="string",
app_id="string",
partition=integer)
print(response)
{
"errors": [
{
"code": 0,
"id": "string",
"message": "string"
}
],
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total": 0
},
"powered_by": "string",
"query_time": 0.0,
"trace_id": "string",
"writes": {
"resources_affected": 0
}
}
}