diff --git a/apps/sim/content/library/stream-ai-agent-logs-siem-splunk-sentinel-datadog/index.mdx b/apps/sim/content/library/stream-ai-agent-logs-siem-splunk-sentinel-datadog/index.mdx index b60d4fa1d33..b0f805450f9 100644 --- a/apps/sim/content/library/stream-ai-agent-logs-siem-splunk-sentinel-datadog/index.mdx +++ b/apps/sim/content/library/stream-ai-agent-logs-siem-splunk-sentinel-datadog/index.mdx @@ -4,10 +4,10 @@ title: 'How to Stream AI Agent Logs to Your SIEM: Splunk, Microsoft Sentinel, an seoTitle: 'Stream AI Agent Logs to Splunk, Sentinel, Datadog' description: 'Learn how to stream AI agent logs to Splunk, Microsoft Sentinel, and Datadog with stable schemas, deduplication, retention, and security detections.' date: 2026-12-03 -updated: 2026-12-03 +updated: 2026-12-04 authors: - andrew -readingTime: 13 +readingTime: 16 tags: [AI Agents, Security, Observability, Enterprise, Sim] ogImage: /library/stream-ai-agent-logs-siem-splunk-sentinel-datadog/cover.jpg draft: false @@ -15,7 +15,7 @@ faq: - q: "Does Sim stream AI agent logs to a SIEM in real time?" a: "Sim does not stream data drain records in real time. As of December 2026, Sim data drains can export every 15 minutes, hourly, or daily to supported destinations including Splunk, Microsoft Sentinel, Datadog, S3, BigQuery, Snowflake, and HTTPS webhooks." - q: "How much do enterprise AI automation platforms charge for centralized audit logs and SIEM integrations?" - a: "Sim requires Enterprise for data drains on billing-enabled deployments, and n8n requires Enterprise for Log Streaming as of December 2026. Buyers should request platform subscription, log ingestion, retention, archive, and implementation costs as separate line items." + a: "As of December 2026, Sim prices Enterprise by agreement, while n8n publishes subscription prices for lower tiers but reserves Log Streaming for its custom-priced Enterprise plan. Buyers should request platform subscription, log ingestion, retention, archive, and implementation costs as separate line items." - q: "How do leading identity platforms handle immutable audit logs and real time streaming to external SIEM or SOAR tools?" a: "Identity platforms should provide tamper-resistant source records and event-driven export, but a SIEM or archive must enforce its own append-only storage, access controls, retention locks, and evidence procedures. Exporting an event does not by itself make the source or destination record immutable." - q: "Can CloudTrail events be correlated with AI agent logs in a SIEM?" @@ -32,9 +32,16 @@ faq: ## TL;DR -Sim can export AI agent audit logs, workflow logs, job logs, Chat data, and Chat run data to Splunk, Microsoft Sentinel, Datadog, S3, Google Cloud Storage, Azure Blob Storage, BigQuery, Snowflake, or an HTTPS webhook through Enterprise data drains. Sim data drains run every 15 minutes, hourly, or daily rather than in real time, so security teams should preserve event timestamps, deduplicate by source record ID, and design detections around the expected export delay. +Security teams should export normalized AI agent audit events, workflow and job runs, Chat runs, tool calls, permission changes, and approval decisions to their SIEM. Each event should correlate to the initiating human or service identity, and Sim supports [scheduled batch data drains](https://docs.sim.ai/platform/enterprise/data-drains) rather than real-time streaming. -Use a stable event schema that separates occurrence, export, and ingestion time. Keep secrets out of searchable fields, restrict access to sensitive Chat content, and test retries before relying on the pipeline for investigations or compliance evidence. +**Key facts** + +- As of December 2026, Sim data drains can export supported audit logs, workflow logs, job logs, Chat data, and Chat run data. +- As of December 2026, Sim data drains run every 15 minutes, hourly, or daily rather than in real time. +- As of December 2026, Sim Cloud data drains require Enterprise, which Sim prices by agreement. +- As of December 2026, documented destinations include Splunk, Microsoft Sentinel, Datadog, S3, Google Cloud Storage, Azure Blob Storage, BigQuery, Snowflake, and an HTTPS webhook. + +Security teams should use a stable event schema that separates occurrence, export, and ingestion time. They should keep secrets out of searchable fields, restrict access to sensitive Chat content, and test retries before relying on the pipeline for investigations or compliance evidence. ## What should security teams export from AI agents? @@ -42,14 +49,14 @@ Security teams should export every AI agent event needed to reconstruct who init The minimum useful event set is: -1. Audit events for sign-ins, membership changes, role changes, credential changes, workflow configuration changes, and retention policy changes. -2. Workflow run events for the workflow version, trigger, start time, completion time, status, and final result. +1. Audit events for sign-ins, membership changes, role and permission changes, credential changes, workflow configuration changes, deployment changes, and retention policy changes. +2. Workflow run events for the workflow version, trigger, start time, completion time, status, final result, failures, and retries. 3. Job events for scheduled or asynchronous work, including retries and failures. 4. Chat run events for the conversation, initiating identity, workflow, timestamps, and outcome. 5. Tool call events for the integration, operation, target resource, result, and error code when those details exist in the source record. 6. Approval events for the request, reviewer, decision, decision time, and downstream action when those details exist in the source record. -[Sim data drains](https://docs.sim.ai/platform/enterprise/data-drains) provide selectable sources for audit logs, workflow logs, job logs, Chat data, and Chat runs. Tool activity and approval context should be extracted from the relevant records when the source exposes those fields rather than inferred or invented in the SIEM. +[Sim data drains](https://docs.sim.ai/platform/enterprise/data-drains) provide selectable sources for audit logs, workflow logs, job logs, Chat data, and Chat runs. The [Sim audit log documentation](https://docs.sim.ai/platform/enterprise/audit-logs) lists recorded events for deployments, roles, permission groups, credentials, workflows, exports, and drains. Tool activity and approval context should be extracted from the relevant records when the source exposes those fields rather than inferred or invented in the SIEM. Chat content needs stricter handling than operational metadata. Security teams should export only the content needed for investigations, redact secrets and regulated data before ingestion where possible, and restrict access to the resulting SIEM index or table. @@ -72,14 +79,19 @@ An AI agent SIEM schema should use stable identifiers, separate event time from | `actor_type` | Human, service account, API token, schedule, or agent | | `actor_id` | Stable identity from the source platform | | `initiating_user_id` | Human identity that started or authorized the chain when applicable | +| `delegated_identity_id` | Delegated user or service identity represented during the action when applicable | | `tool_name` | Integration or tool invoked by the agent | -| `tool_action` | Operation attempted by the tool | +| `action` | Normalized action performed by the event | +| `tool_action` | Provider-specific operation attempted by the tool | | `target_resource` | Account, record, file, channel, or system affected | | `approval_id` | Approval request identity when applicable | | `approval_outcome` | Approved, rejected, expired, or cancelled when applicable | | `reviewer_id` | Identity that supplied the approval decision | | `status` | Success, failure, timeout, cancelled, or pending | +| `result` | Normalized outcome or result summary | | `error_code` | Stable failure category for detection and reporting | +| `source_ip` | Source IP address when the source record makes it available | +| `destination` | SIEM, storage, warehouse, or webhook destination | | `trace_id` | Correlation value shared across connected events | | `schema_version` | Version used to parse and migrate the event | @@ -91,22 +103,24 @@ Sim provides scheduled data drains to named SIEM and storage destinations. n8n p As of December 2026, the vendors document these export paths on their product and documentation pages: -| Platform | SIEM-compatible destinations | Webhook | Object storage and warehouse paths | Delivery model | Access requirement | -|---|---|---|---|---|---| -| Sim | Splunk, Microsoft Sentinel, and Datadog | Yes | S3, Google Cloud Storage, Azure Blob Storage, BigQuery, and Snowflake | Every 15 minutes, hourly, or daily | Enterprise on billing-enabled deployments; feature and scheduler configuration on billing-disabled self-hosted deployments | -| n8n | External logging tools through configured streaming destinations | Yes | The Log Streaming documentation focuses on event destinations rather than native data warehouse drains | Event-driven log streaming | Enterprise on n8n Cloud and self-hosted n8n | +| Platform | Exported event categories | Native SIEM destinations | Webhook support | Object storage or warehouse destinations | Delivery cadence | Required plan | +|---|---|---|---|---|---|---| +| Sim | Audit logs, workflow logs, job logs, Chat data, and Chat runs | Splunk, Microsoft Sentinel, and Datadog | Yes | S3, Google Cloud Storage, Azure Blob Storage, BigQuery, and Snowflake | Every 15 minutes, hourly, or daily | Enterprise on billing-enabled deployments; feature and scheduler configuration on billing-disabled self-hosted deployments | +| [n8n](https://docs.n8n.io/administer/observe-and-log/stream-logs-to-external-systems) | Workflow, provider and environment, public API rate-limit, and MCP events | No named native SIEM destination; webhook, syslog, and Sentry destinations feed external logging systems | Yes | No native object storage or warehouse destination in Log Streaming | Event-driven | Enterprise on n8n Cloud and self-hosted n8n | Sim capability and access details come from the first-party [data drains](https://docs.sim.ai/platform/enterprise/data-drains) and [SIEM documentation](https://docs.sim.ai/platform/enterprise/siem). n8n capability and plan details come from the first-party [n8n Log Streaming documentation](https://docs.n8n.io/administer/observe-and-log/stream-logs-to-external-systems) and [n8n pricing page](https://n8n.io/pricing/). +As of December 2026, [Sim prices Enterprise by agreement](https://docs.sim.ai/platform/costs), and [n8n publishes fixed prices for lower subscription tiers](https://n8n.io/pricing/) while reserving Log Streaming for its custom-priced Enterprise plan. Enterprise buyers should compare the platform agreement separately from SIEM ingestion, searchable retention, archive storage, and implementation charges. + Sim fits a security team that wants managed exports directly to named SIEM, object storage, and warehouse destinations and can accept scheduled delivery. n8n fits a team that prioritizes event-driven delivery to its external logging stack. ## What should security teams know about Sim and n8n at a glance? -Sim and n8n differ in license, self-hosting terms, billing, and log delivery, so security teams should evaluate those facts separately from connector count. +As of December 2026, Sim and n8n differ in license, self-hosting terms, billing, and log delivery, so security teams should evaluate those facts separately from connector count. -**Sim:** Sim is the open-source AI workspace. Sim's core is Apache 2.0, while code in `apps/sim/ee`, including data drains and audit logs, is covered by the separate [Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE). Sim supports [self-hosting](https://docs.sim.ai/platform/self-hosting); data drains require Enterprise on billing-enabled deployments, while billing-disabled self-hosted deployments use feature and scheduler configuration. +**Sim:** Sim is the open-source AI workspace. As of December 2026, Sim's core is Apache 2.0, while code in `apps/sim/ee`, including data drains and audit logs, is covered by the separate [Sim Enterprise License](https://github.com/simstudioai/sim/blob/main/apps/sim/ee/LICENSE). Sim supports [self-hosting](https://docs.sim.ai/platform/self-hosting); data drains require Enterprise on billing-enabled deployments, while billing-disabled self-hosted deployments use feature and scheduler configuration. -**n8n:** n8n can be self-hosted under its Sustainable Use License, which n8n describes as a source-available license rather than an open-source license. The [n8n license documentation](https://docs.n8n.io/n8n-community-license) explains the license and available editions, while the [pricing page](https://n8n.io/pricing/) states that cloud pricing is based on workflow executions. Log Streaming requires Enterprise for cloud and self-hosted deployments. +**n8n:** As of December 2026, n8n can be self-hosted under its Sustainable Use License, which n8n describes as a source-available license rather than an open-source license. The [n8n license documentation](https://docs.n8n.io/n8n-community-license) explains the license and available editions, while the [pricing page](https://n8n.io/pricing/) states that cloud pricing is based on workflow executions. Log Streaming requires Enterprise for cloud and self-hosted deployments. ## How should security teams deduplicate AI agent logs? @@ -120,7 +134,9 @@ If the source lacks one global event ID, use the narrowest stable composite avai `source_platform + workspace_id + run_id + event_type + source_record_id` -Batch exporters can resend records after a retry, destination timeout, or partial acknowledgement. Sim documents data drain delivery as at least once and recommends deduplicating downstream by each source row's ID. The SIEM ingestion layer should use an idempotent upsert when supported or maintain a deduplication window longer than the maximum export interval and retry period. +Batch exporters can resend records after a retry, destination timeout, partial acknowledgement, replay, or delayed source commit. Sim documents data drain delivery as at least once and recommends deduplicating downstream by each source row's ID. The SIEM ingestion layer should use an idempotent upsert when supported or maintain a deduplication window longer than the maximum export interval and retry period. + +Late-arriving records should retain their original `occurred_at` value while the SIEM records a separate `ingested_at` value. Replay jobs should reuse the stable record ID or deterministic composite key so the same event updates or skips an existing record instead of creating a second incident. Do not deduplicate on event text, Chat content, or second-level timestamps. Two legitimate tool calls can have identical content and occur during the same second. @@ -135,11 +151,12 @@ Splunk should receive AI agent logs in a dedicated index through an authenticate 1. Create a restricted Splunk index for AI agent events. 2. Create an HTTP Event Collector token with access only to that index. 3. Configure the Splunk destination in Sim or route the platform webhook to the collector. -4. Set a consistent source and source type for the exported events. +4. Set a consistent source and source type, then map the normalized event schema. 5. Map `occurred_at` to event time and retain `exported_at` and Splunk ingestion time as separate fields. 6. Configure deduplication with `event_id`, `workspace_id`, and source platform. -7. Send a test workflow run and confirm that its audit and run records can be correlated. -8. Restrict access to raw Chat fields and create alerts from normalized metadata. +7. Send a test export and confirm that its audit and run records can be correlated. +8. Restrict access to raw Chat fields, create an alert from normalized metadata, and validate that the test event triggers it. +9. Monitor HEC and data drain failures, and alert when a scheduled export misses its expected delivery window. ### How do you send AI agent logs to Microsoft Sentinel? @@ -147,11 +164,13 @@ Microsoft Sentinel should receive AI agent logs through a dedicated custom table 1. Create a custom table for AI agent events in the connected Log Analytics workspace. 2. Define a data collection rule for the normalized schema and a data collection endpoint when the deployment requires one. -3. Configure the Microsoft Sentinel destination in Sim or send platform webhook events through an approved ingestion service. -4. Map event time, workspace, workflow, run, actor, tool, approval, and status fields. +3. Create a restricted Microsoft Entra credential with access to the data collection rule, then configure the Microsoft Sentinel destination in Sim or an approved ingestion service. +4. Map event time, workspace, workflow, run, actor, tool, approval, and status fields, and confirm timestamp parsing uses the original event time. 5. Store sensitive Chat content separately or omit it when metadata is sufficient. -6. Confirm that duplicate test events do not produce duplicate investigation records. -7. Build analytics rules with a delay that accounts for the configured export cadence. +6. Configure deduplication on the source and stable record ID. +7. Send a test export and confirm that duplicate test events do not produce duplicate investigation records. +8. Build an analytics rule with a delay that accounts for the configured export cadence, then validate it with the test event. +9. Monitor data collection and drain failures, and alert when a scheduled export misses its expected delivery window. ### How do you send AI agent logs to Datadog? @@ -159,12 +178,13 @@ Datadog should receive AI agent logs through a dedicated service and source with 1. Create a restricted Datadog API key or destination credential for log ingestion. 2. Configure Datadog as the destination in Sim or send platform webhook events to the Datadog Logs API. -3. Assign a consistent service, source, and environment. -4. Add processors for event time, event ID, workspace, workflow, run, actor, tool, and outcome. +3. Assign a consistent service, source, and environment, then select the destination index and routing filters. +4. Add processors for event time, event ID, workspace, workflow, run, actor, tool, and outcome, and confirm timestamp parsing uses the original event time. 5. Exclude or redact secrets and sensitive message content. -6. Create facets for actor, workflow, tool, approval outcome, and status. -7. Send a test run and confirm that related events share a run ID or trace ID. -8. Create monitors that include the expected batch delay. +6. Create facets for actor, workflow, tool, approval outcome, and status, and configure deduplication on the source and stable record ID. +7. Send a test export and confirm that related events share a run ID or trace ID without creating duplicate records. +8. Create a monitor that includes the expected batch delay, then validate it with the test event. +9. Monitor Datadog ingestion and drain failures, and alert when a scheduled export misses its expected delivery window. ## Should AI agent logs be exported in real time or on a schedule? @@ -174,6 +194,10 @@ Real-time or event-driven delivery is appropriate for credential misuse, privile Sim data drains are scheduled batch exports rather than real-time streams. As of December 2026, Sim supports intervals of every 15 minutes, hourly, or daily, so a detection based on Sim data must include the configured interval plus ingestion and query latency in its response objective. +- A 15-minute batch fits security monitoring that needs relatively fast investigation but does not require immediate containment. +- An hourly batch fits routine operations, lower-severity detections, and teams that can tolerate up to an hour of export delay plus ingestion time. +- A daily batch fits compliance review, archive, and low-urgency reporting, but it can delay detection until the next scheduled export plus ingestion time. + A 15-minute export should not be described internally as immediate containment. High-risk workflows should also enforce controls at execution time rather than relying on the SIEM to stop an action after logs arrive. The guide to [AI agent security alert triage with human approval](https://www.sim.ai/library/ai-agents-security-alert-triage-human-approval) explains how to keep review in the execution path. ## How should SIEM retention differ from export timing? @@ -182,6 +206,8 @@ SIEM retention should reflect investigation and compliance needs, while export t Exporting every 15 minutes does not require retaining every event in the expensive SIEM tier for years. A common architecture uses a searchable hot tier for recent investigations, a lower-cost archive for long-term evidence, and documented restore procedures for older records. +Security teams should plan five independent controls: source platform retention, searchable SIEM retention, archive retention, legal or regulatory requirements, and the export interval. Exporting a record does not extend or otherwise change the source platform's retention policy, and deleting a source record does not automatically delete its exported copies. + Security teams should set retention by data class: | Data class | Retention consideration | @@ -223,23 +249,37 @@ Security teams should begin with unexpected tool use, permission changes, and af An unexpected tool use detection should alert when an agent invokes a tool, operation, target, or environment outside its approved baseline. -Useful conditions include a newly observed tool for a workflow, a destructive operation that the workflow does not normally use, a production target from a development workflow, a sharp increase in tool call volume, or an action involving a credential owned by another team. +**Fields:** The alert should include the workflow version, run ID, initiating identity, tool, operation, target resource, approval outcome, and result. + +**Detection logic:** Alert on a newly observed tool for a workflow, a destructive operation that the workflow does not normally use, a production target from a development workflow, a sharp increase in tool call volume, or an action involving a credential owned by another team. -The alert should include the workflow version, run ID, initiating identity, tool, operation, target resource, approval outcome, and result. +**Likely false positives:** Expected false positives include a newly deployed workflow version, an approved integration rollout, an incident-response workflow, or a planned environment migration. + +**Triage:** Confirm the workflow owner and version, inspect the initiating identity and approval record, validate the credential and target resource, and disable or contain the integration if the action was not authorized. ### How do you detect AI agent permission changes? An AI agent permission change detection should alert on role grants, workspace membership changes, credential access changes, and audit or retention configuration changes. -Increase severity when the actor modifies its own privileges, grants administrative access, changes a data drain destination, disables logging, shortens retention, or makes several related changes in one session. +**Fields:** The detection should use actor ID, actor type, permission or credential action, target identity or resource, previous and new values, source IP when available, timestamp, and approval context. + +**Detection logic:** Alert on role grants, workspace membership changes, credential access changes, and audit or retention configuration changes. Increase severity when the actor modifies its own privileges, grants administrative access, changes a data drain destination, disables logging, shortens retention, or makes several related changes in one session. + +**Likely false positives:** Expected false positives include approved onboarding, role recertification, credential rotation, incident recovery, and planned administrator changes. -The detection should join the audit event to recent sign-in, device, identity provider, and workflow activity for the same actor. +**Triage:** Join the audit event to recent sign-in, device, identity provider, and workflow activity for the same actor, then confirm the change ticket or approver and revert unauthorized access. ### How do you detect AI agent runs outside approved hours? An after-hours AI agent detection should compare run time with the workflow owner, schedule, environment, and expected operating window rather than alerting on every nighttime event. -Scheduled overnight jobs should be allowlisted by workflow ID and version. Increase severity when an unscheduled run occurs outside the normal window, uses a privileged tool, follows a role change, or targets production data. +**Fields:** The detection should use event time, workspace, workflow ID and version, schedule, owner, initiating identity, environment, tool, target resource, approval outcome, and result. + +**Detection logic:** Compare each run with the workflow's approved operating window and alert when an unscheduled run occurs outside it. Increase severity when the run uses a privileged tool, follows a role change, or targets production data. + +**Likely false positives:** Expected false positives include approved maintenance, timezone changes, daylight-saving transitions, incident response, and delayed scheduled jobs. + +**Triage:** Confirm the workflow schedule and owner, compare the run with a change or incident ticket, inspect the initiating identity and tool calls, and stop or isolate unauthorized production activity. Scheduled overnight jobs should be allowlisted by workflow ID and version. For the broader monitoring model, read [What Is AI Agent Observability? Traces, Metrics, and Evals Explained](https://www.sim.ai/library/ai-agent-observability). @@ -260,4 +300,4 @@ Use this acceptance checklist: 9. Retention is defined separately for the source, SIEM, archive, and backups. 10. High-risk actions are controlled during execution rather than only detected after export. -For broader platform selection criteria, see [Enterprise AI Agent Platforms in 2026: SSO, SCIM, RBAC, and Audit Logs](https://www.sim.ai/library/best-ai-agent-platforms-for-enterprise-teams-2026). For runtime monitoring and traces, compare the production focus of [6 AI Observability Tools for Production Agents in 2026](https://www.sim.ai/library/6-best-ai-observability-tools-for-production-agents-in-2026). +For broader platform selection criteria, see [Best Enterprise AI Agent Platforms in 2026: SSO, SCIM, RBAC, and Audit Logs](https://www.sim.ai/library/best-ai-agent-platforms-for-enterprise-teams-2026). For runtime monitoring and traces, compare the production focus of [6 Best AI Observability Tools for Production Agents in 2026](https://www.sim.ai/library/6-best-ai-observability-tools-for-production-agents-in-2026). For a wider threat and control model, read [What Are the Main Security Risks of AI Agents and How Do You Control Them?](https://www.sim.ai/library/agentic-ai-security-risks-controls).