Skip to content

Enterprise

Send logs to a SIEM

Export audit, workflow, job, and Chat logs to Microsoft Sentinel, Datadog, Splunk, or another SIEM with data drains.

Sim sends logs to a SIEM through data drains. A drain exports one source on a schedule to one destination. Organization owners and admins manage drains. Billing-enabled deployments require Enterprise.

Choose a path

SIEMPath
Microsoft SentinelMicrosoft Sentinel destination. Sim writes to a custom Log Analytics table through the Logs Ingestion API.
Datadog Cloud SIEMDatadog destination. Sim writes to Datadog Logs.
SplunkSplunk destination. Sim writes to the HTTP Event Collector (HEC).
Other SIEMsAmazon S3, Google Cloud Storage, Azure Blob Storage, or HTTPS webhook, then your SIEM's collector for that source.

Choose sources

Create one drain per source. Most security teams start with audit logs.

SourceUse it for
Audit logsConfiguration and security events: who changed what, when, from which IP address and user agent.
Workflow logsFinished workflow executions, with status, trigger, duration, and execution data.
Job logsFinished background jobs for deployed APIs, schedules, and webhooks.
ChatsChat conversation snapshots.
Chat runsFinished Chat runs, with agent, model, provider, status, and error.

Workflow logs and Chats can contain large payloads. Sentinel rejects a row whose Data exceeds 64,000 bytes, and Sim rejects a Splunk event over 1,000,000 bytes (Splunk Cloud Platform's HEC limit), so send those sources to object storage if rows are large.

Set up a drain

Create, test, and run each drain as described in Create and verify a drain; a new drain starts with all retained history, so the first runs deliver a backfill.

Microsoft Sentinel

Create a custom table, a data collection rule, and a Microsoft Entra application with Monitoring Metrics Publisher on the rule. Then choose Microsoft Sentinel and enter Logs ingestion endpoint, DCR immutable ID, Stream name, Tenant ID, Client ID, and Client secret.

Each row arrives with TimeGenerated, Source, RecordId, DrainId, RunId, and Data. Data holds the full source row. TimeGenerated is the drain run start, not the event time. Use Data.createdAt or the source's own timestamp for correlation.

See Microsoft Sentinel for the stream declaration, a sample row, and a KQL query.

Datadog

Choose Datadog, select your Site, and enter a Logs API key. Service defaults to sim. Tags are optional key:value pairs, separated by commas.

Each source row becomes one log. Top-level row fields become log attributes. Sim sets ddsource to sim, sets service, and adds the tags sim_drain_id, sim_run_id, and sim_source. Sim does not set a date attribute, so Datadog uses intake time. To use the event time, add a date remapper for createdAt in your log pipeline. Build Cloud SIEM detection rules on the source:sim logs.

Splunk

Create an HTTP Event Collector token, then choose Splunk and enter the HEC URL and HEC token. Index defaults to the token's default index, and Source type defaults to sim:<source>, for example sim:audit_logs.

Each source row becomes one HEC event. event holds the full source row, time is the row's event time (createdAt or startedAt), and the indexed fields sim_drain_id, sim_run_id, and sim_source identify the drain. Search with index=<index> sourcetype="sim:audit_logs".

Splunk Enterprise serves HEC on port 8088 by default. Splunk Cloud Platform serves it on 443. See Splunk for batching limits, large events, and indexer acknowledgment.

Object storage and webhooks

S3, Google Cloud Storage, and Azure Blob Storage receive one NDJSON object per chunk at:

Code
{prefix}/{source}/{drainId}/{yyyy}/{mm}/{dd}/{runId}-{seq}.ndjson

The HTTPS webhook destination posts each chunk as application/x-ndjson, signed with HMAC-SHA256. Headers include X-Sim-Drain-Id, X-Sim-Run-Id, X-Sim-Source, X-Sim-Sequence, and Idempotency-Key. See HTTPS webhook to verify signatures.

Record shape

Every destination receives the same source rows. Each row is one JSON object with an id. Timestamps are ISO 8601 strings.

SourceFields
Audit logsid, workspaceId, actorId, actorName, actorEmail, action, resourceType, resourceId, resourceName, description, metadata, ipAddress, userAgent, surface, createdAt
Workflow logsid, executionId, workflowId, workspaceId, stateSnapshotId, deploymentVersionId, level, status, trigger, startedAt, endedAt, totalDurationMs, executionData, cost, files, createdAt
Job logsid, executionId, scheduleId, workspaceId, level, status, trigger, startedAt, endedAt, totalDurationMs, executionData, cost, createdAt
Chatsid, userId, workflowId, workspaceId, type, title, messages, model, conversationId, previewYaml, config, resources, lastSeenAt, deletedAt, createdAt, updatedAt
Chat runsid, executionId, parentRunId, chatId, userId, workflowId, workspaceId, streamId, agent, model, provider, status, requestContext, startedAt, completedAt, createdAt, updatedAt, error

An audit-log row:

Code
{
  "id": "audit-event-123",
  "workspaceId": "workspace-123",
  "actorId": "user-123",
  "actorName": "Ada Lovelace",
  "actorEmail": "ada@example.com",
  "action": "workflow.updated",
  "resourceType": "workflow",
  "resourceId": "workflow-123",
  "resourceName": "Invoice triage",
  "description": "Updated workflow",
  "metadata": {},
  "ipAddress": "203.0.113.10",
  "userAgent": "Mozilla/5.0",
  "surface": null,
  "createdAt": "2026-10-15T09:00:00.000Z"
}

Inspect real rows before building parsers or detection rules. See audit logs for the action names.

Cadence and latency

Drains are scheduled batch export, not real-time streaming; see Cadence and latency for when each cadence runs and how soon rows arrive.

Deduplicate on id

Delivery is at least once. A retry, a partial acceptance, or a crash after delivery can send the same row twice. Deduplicate on the row's id together with the source. In Sentinel, use Source and RecordId. In Splunk, use sim_source and event.id.

Retries and checkpoints

A failed run resumes after the last accepted chunk and never skips a row; see Checkpoints, bounds, and failures for retry rules and limits.

Network requirements

Sim connects to the destination from its own servers. Allow Sim's outbound traffic through your firewall and the destination's network rules.

Self-hosted deployments also apply their outbound-network policy.

Was this helpful?
Suggest an edit