← Docs · 日本語

Splunk Integration (Audit Log Export)

Stream your account's audit log (the history of Console / API operations) to your Splunk Cloud via HEC (HTTP Event Collector), with reliable delivery backed by indexer acknowledgement.


1. Setup

On the Splunk side (5 min)

  1. In Splunk Cloud, create a new HEC token under Settings → Data Inputs → HTTP Event Collector
  2. When creating the token, turn on "Enable indexer acknowledgement" (recommended — AgenTrux marks a batch as delivered only after the indexer confirms it, preventing data loss)
  3. Note your HEC URL. Splunk Cloud is usually https://http-inputs-<stack>.splunkcloud.com (port 443). Self-managed deployments may use 8088

On the AgenTrux side (2 min)

  1. Sign in to the Console → AccountIntegrations (Experimental)Splunk Audit Export
  2. Fill in:
    Field Value
    HEC URL https://<host> (port 443 or 8088; no path needed)
    HEC Token The token created above
    Index Target index (optional; token's default index if omitted)
    Source / Sourcetype Defaults agentrux:audit / _json are fine
    Indexer acknowledgement Keep enabled (recommended)
  3. Save configurationTest connection (sends one real test event and waits for the ack)
  4. Enable export — streaming starts here

2. What flows, and how

3. Event structure

Events arrive in the standard HEC envelope. time is when the audit event occurred; the OCSF body is under event:

HEC field Content
source Configured value (default agentrux:audit)
sourcetype Configured value (default _json — JSON fields are auto-extracted at search time)
time When the audit event occurred
event.* The OCSF event body (below)

Main fields under event.*:

Field Content Example
event.activity_name Operation name topic.create, splunk_export.enable
event.actor.user.uid Actor ID usr_..., scr_... (an agent)
event.status / event.status_id Outcome Success / Failure
event.class_uid OCSF class 3002 (Authentication) / 6003 (API Activity)
event.src_endpoint.ip Source IP
event.resources{}.uid Target resource top_..., acc_...
event.metadata.uid Unique event ID (dedup key) agentrux:audit:12345
event.unmapped.details Operation details (varies)

4. SPL recipes

# All audit events (fields auto-extracted thanks to sourcetype=_json)
source="agentrux:audit"

# Dedupe and count (drop at-least-once resends)
source="agentrux:audit" | dedup event.metadata.uid | stats count

# All failed operations
source="agentrux:audit" event.status=Failure

# Authentication / credential operations
source="agentrux:audit" event.class_uid=3002

# Activity of a specific user / agent
source="agentrux:audit" event.actor.user.uid=usr_xxxx

# Count by operation
source="agentrux:audit" | dedup event.metadata.uid
  | stats count by event.activity_name | sort -count

# Grant (access right) changes
source="agentrux:audit" event.activity_name=grant.*

# State changes of the integration itself (detect auto-disable)
source="agentrux:audit" event.activity_name=*_export.auto_disable

5. Suggested alerts (saved searches)

6. Operational notes