to_asl
Sends events to Amazon Security Lake (ASL).
to_asl s3_uri:string, region=string, account_id=string, [timeout=duration]
Description
Section titled “Description”The to_asl
operator sends OCSF events to an Amazon Security Lake.
The events must match the Lakes selected OCSF event class. The operator does not perform any validation on the events. OCSF event classes supported by ASL can be found here.
The operator takes care of ASL’s partitioning and file size requirements.
The file names will be randomly generated UUIDs (v4) with a .parquet
file
extension.
s3_uri: string
Section titled “s3_uri: string”The base URI for the S3 storage backing the lake in the form
s3://<bucket>/ext/<custom-source-name>
Replace the placeholders as follows:
<bucket>
: the bucket associated with your lake<custom-source-name>
: the name of your custom ASL source
This URI can be directly copied from the AWS security lake custom source interface.
region = string
Section titled “region = string”The region for partitioning.
account_id = string
Section titled “account_id = string”The AWS accountID or external ID chosen when creating the ASL custom source.
timeout = duration (optional)
Section titled “timeout = duration (optional)”A duration after which the operator will write to ASL, regardless of file size.
ASL specifies this should be between 5min
and 1d
.
The default is 5min
.
Examples
Section titled “Examples”Send OCSF Network Activity events to ASL
Section titled “Send OCSF Network Activity events to ASL”Given a AWS security lake running on eu-west-2
, a custom source called
tenzir_network_activity
set up on that lake, and an account with id
123456789012
for it:
let $s3_uri = "s3://aws-security-data-lake-eu-west-2-lake-abcdefghijklmnopqrstuvwxyz1234/ext/tenzir_network_activity/"
exportwhere @name == "ocsf.network_activity"to_asl $s3_uri, region="eu-west-2", accountId="123456789012"