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.4.6
PowerShellv2.2.9
Gov0.20.0
TypeScriptv0.6.0
Rustv0.7.0
Rubyv1.2.0
Sample Code
OperationDescription
refreshActiveStreamSession
refresh_active_stream
Refresh an active event stream. Use the URL shown in a listAvailableStreamsOAuth2 response.
listAvailableStreamsOAuth2
list_available_streams
Discover all event streams in your environment

Refresh an active event stream. Use the URL shown in a listAvailableStreamsOAuth2 response.

POST /sensors/entities/datafeed-actions/v1/{}
Scope Event Streams: READ Consumes · Produces application/json
PEP 8 refresh_active_stream
NameTypeData typeDescription
action_namequerystringThe name of the action to perform. The only allowed value is refresh_active_stream_session. Defaults to this value if not present when using the Service Class.
app_idquerystringLabel that identifies your connection. Max: 32 alphanumeric characters (a-z, A-Z, 0-9). Will also accept the keyword appId to specify this value.
partitionpathintegerPartition to request data for. If you are using the Service Class, this will default to 0 when not specified.
parametersquerydictionaryFull query string parameters payload in JSON format.
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="string")
print(response)

Discover all event streams in your environment

GET /sensors/entities/datafeed/v2
Scope Event Streams: READ Consumes · Produces application/json
PEP 8 list_available_streams
NameTypeData typeDescription
app_idquerystringLabel that identifies your connection. Max: 32 alphanumeric characters (a-z, A-Z, 0-9). Will also accept the keyword appId to specify this value.
formatquerystringFormat for streaming events. Valid values: json, flatjson
parametersquerydictionaryFull query string parameters payload in JSON format.
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)