kosa8 docs Dashboard
esc
↑ ↓ move↵ openRuns in your browser; nothing you type is sent anywhere.

CLI / cloud / siem / add

kosa8 cloud siem add

Add a SIEM destination

--kind webhook --url https://… (a signing secret is printed once) --kind splunk_hec --url https://splunk…:8088/services/collector/event --token … --kind datadog --site datadoghq.com --api-key … --kind s3 --bucket B --region us-east-1 [--endpoint https://…] --access-key-id … [--prefix kosa8-audit/] --kind r2 --bucket B --account-id <32 hex> [--jurisdiction eu|fedramp] --access-key-id … [--prefix …]

An s3 or r2 destination gets one NDJSON object per batch (one OCSF event a line) at <prefix><org_id>/YYYY/MM/DD/<first>-<last seq>.ndjson.

The token, API key or secret access key may come from KOSA8_SIEM_TOKEN instead of a flag, to keep it out of shell history. It is stored encrypted and never shown again.

Options#

FlagTypeWhat it doesDefault
--access-key-idstringaccess key ID that may write to the bucket (s3, r2)—
--account-idstringyour Cloudflare account ID (r2)—
--api-keystringDatadog API key (or KOSA8_SIEM_TOKEN)—
--bucketstringbucket name (s3, r2)—
--endpointstringhttps endpoint of an S3-compatible store (s3)—
--indexstringSplunk index—
--jurisdictionstringR2 jurisdiction: eu or fedramp (r2)—
--kindstringwebhook, splunk_hec, datadog, s3 or r2webhook
--namestringa name for this destination—
--prefixstringobject key prefix (s3, r2; default kosa8-audit/)—
--regionstringAWS region (s3; default us-east-1)—
--secret-access-keystringits secret access key (or KOSA8_SIEM_TOKEN)—
--sitestringDatadog site, e.g. datadoghq.com or datadoghq.eu—
--sourcetypestringSplunk sourcetype (default ocsf:api_activity)—
--startstringbeginning (send the whole log first, the default) or now—
--tokenstringSplunk HEC token (or KOSA8_SIEM_TOKEN)—
--urlstringhttps address (webhook, splunk_hec)—

Example#

  kosa8 cloud siem add --kind splunk_hec --url https://splunk.acme.com:8088/services/collector/event --index security
  kosa8 cloud siem add --kind datadog --site datadoghq.eu --start now
  KOSA8_SIEM_TOKEN=… kosa8 cloud siem add --kind r2 --bucket audit --account-id 0123…cdef --access-key-id …

The kosa8 weekly

Agent security news, one industry deep-dive and a hands-on challenge, every Monday. Unsubscribe in one click.

© 2026 kosa8 · kosa8.com · Zero Trust cybersecurity infrastructure for AI agents · Local models served by llamay · Agent gateway: MAQPNA