You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1944963
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/enterprise/data-drains.mdx
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Data drains
3
-
description: Export retained logs and Chat data to storage, a warehouse, Microsoft Sentinel, Datadog, or a webhook endpoint.
3
+
description: Export retained logs and Chat data to storage, a warehouse, Microsoft Sentinel, Datadog, Splunk, or a webhook endpoint.
4
4
---
5
5
6
6
import { Callout } from'@/components/ui/callout'
@@ -192,6 +192,16 @@ Sim posts to v2 logs intake, exposes top-level row fields as log attributes, and
192
192
193
193
Expanded entries are split before compression. Requests are limited to **5,000,000 uncompressed bytes**, **1,000 entries**, and **1,000,000 bytes per entry**, with a defensive 6 MiB wire-size cap. Payloads larger than 1,024 bytes use gzip.
194
194
195
+
### Splunk
196
+
197
+
Create an HTTP Event Collector (HEC) token in Splunk, then supply the **HEC URL** and **HEC token**. Enter the HEC base URL, such as `https://http-inputs-<stack>.splunkcloud.com` for Splunk Cloud Platform or `https://splunk.example.com:8088` for Splunk Enterprise; Sim appends `/services/collector/event`, and a URL that already ends in `/services/collector` or `/services/collector/event` is accepted. Any path in front of it is kept, for HEC served behind a reverse proxy. **Index** is optional and defaults to the token's default index; it must be in the token's allowed indexes. **Source type** is optional and defaults to `sim:<source>`, for example `sim:audit_logs`.
198
+
199
+
Each source row becomes one HEC event with the full row under `event`, `source` set to `sim`, and indexed fields `sim_drain_id`, `sim_run_id`, and `sim_source`. `time` is the row's own event time: `createdAt` for audit logs and Chats, and `startedAt` for workflow logs, job logs, and Chat runs. A row without a parseable time uses the drain run start. Search with `index=<index> sourcetype="sim:audit_logs"`; Splunk extracts the JSON fields at search time.
200
+
201
+
Sim batches events into requests of at most **1,000,000 bytes**, within Splunk Cloud Platform's 1 MB HEC limit. An event larger than one request fails the run; send large workflow logs or Chats to object storage instead. If large events appear cut off in search, raise `TRUNCATE` in `props.conf` for the source type. Each session sends a fresh `X-Splunk-Request-Channel`. When the token has indexer acknowledgment enabled, Sim polls `/services/collector/ack` and checkpoints a batch only after Splunk confirms it was indexed; a batch not confirmed within 120 seconds fails the run, and the next run resends it. Without acknowledgment, HTTP 200 counts as delivered.
202
+
203
+
**Test connection writes one probe event** with `event: {"sim":"connection-test"}` and indexed field `sim_probe=1` to the configured index. A successful test confirms Splunk accepted the event, not that it is already indexed or searchable. Invalid tokens, disabled tokens, and indexes the token may not write fail immediately with Splunk's reason; `408`, `429`, and `5xx` responses retry up to three times with backoff, honoring `Retry-After` up to 60 seconds; a longer `Retry-After` fails the run for the next one to retry. Like the webhook, the URL must use HTTPS and resolve to public addresses on Sim Cloud, Sim pins the resolved address for the run, and redirects are refused. HEC certificates must be trusted by Sim's TLS store.
204
+
195
205
### HTTPS webhook
196
206
197
207
Supply **URL**, **Signing secret**, optional **Bearer token**, and optional **Signature header name** (default `X-Sim-Signature`). On Sim Cloud, the URL must use HTTPS and resolve to public addresses. Self-hosted deployments apply their [outbound-network policy](/platform/self-hosting/security#the-ssrf-boundary): approved private endpoints and loopback are available, with HTTP only where that policy permits it. Sim blocks cloud-metadata addresses and pins the resolved address for the run to prevent DNS rebinding.
| Splunk |**Amazon S3** destination, then the Splunk Add-on for AWS reads the objects. Sim has no native Splunk destination. |
16
+
| Splunk |**Splunk** destination. Sim writes to the HTTP Event Collector (HEC). |
17
17
| Other SIEMs |**Amazon S3**, **Google Cloud Storage**, **Azure Blob Storage**, or **HTTPS webhook**, then your SIEM's collector for that source. |
18
18
19
19
## Choose sources
@@ -28,7 +28,7 @@ Create one drain per source. Most security teams start with audit logs.
28
28
|**Chats**| Chat conversation snapshots. |
29
29
|**Chat runs**| Finished Chat runs, with agent, model, provider, status, and error. |
30
30
31
-
Workflow logs and Chats can contain large payloads. Sentinel rejects a row whose `Data` exceeds 64,000 bytes, so send those sources to object storage if rows are large.
31
+
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.
32
32
33
33
## Set up a drain
34
34
@@ -50,13 +50,11 @@ Each source row becomes one log. Top-level row fields become log attributes. Sim
50
50
51
51
### Splunk
52
52
53
-
Splunk has no native destination in Sim. Use an S3 drain and the [Splunk Add-on for AWS SQS-based S3 input](https://splunk.github.io/splunk-add-on-for-amazon-web-services/SQS-basedS3/):
53
+
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`.
54
54
55
-
1. Create an **Amazon S3** drain for each source.
56
-
2. In AWS, send the bucket's object-create notifications to SNS and an SQS queue, as the add-on's guide describes.
57
-
3. In Splunk, add an SQS-based S3 input for that queue. Objects are newline-delimited JSON, so configure a custom sourcetype that parses one JSON event per line.
55
+
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"`.
58
56
59
-
The SQS-based S3 input only reads objects that produce notifications. Set up the notification before creating the drain so the backfill is collected.
57
+
Splunk Enterprise serves HEC on port 8088 by default. Splunk Cloud Platform serves it on 443. See [Splunk](/platform/enterprise/data-drains#splunk) for batching limits, large events, and indexer acknowledgment.
60
58
61
59
### Object storage and webhooks
62
60
@@ -110,7 +108,7 @@ Drains are scheduled batch export, not real-time streaming; see [Cadence and lat
110
108
111
109
## Deduplicate on `id`
112
110
113
-
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`.
111
+
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`.
114
112
115
113
## Retries and checkpoints
116
114
@@ -121,7 +119,7 @@ A failed run resumes after the last accepted chunk and never skips a row; see [C
121
119
Sim connects to the destination from its own servers. Allow Sim's outbound traffic through your firewall and the destination's network rules.
122
120
123
121
<Callouttype="info">
124
-
If your organization sends outbound traffic through a dedicated egress gateway, destinations must use HTTPS on port 443. A webhookor storage endpoint on another port, or over plain HTTP, fails.
122
+
If your organization sends outbound traffic through a dedicated egress gateway, destinations must use HTTPS on port 443. A webhook, Splunk, or storage endpoint on another port, or over plain HTTP, fails, including Splunk Enterprise's default HEC port 8088.
125
123
</Callout>
126
124
127
125
Self-hosted deployments also apply their [outbound-network policy](/platform/self-hosting/security#the-ssrf-boundary).
0 commit comments