Send MCP tool-call logs to Datadog, Splunk or another SIEM
Add a Log Stream under Audit Logs to send organization audit logs to Datadog or Splunk Cloud. For other SIEMs or full MCP payloads, log from an Outpost.
To send Metorial logs to your SIEM, open organization settings, go to Audit Logs, Log Streams, and select Add Stream. Enter a Datadog API key and site, or a Splunk HEC endpoint and token, and Metorial delivers organization audit logs there as they happen. For another SIEM, or to keep full tool arguments and results, log from an Outpost in your network.
What you'll learn
- How to create a Log Stream for Datadog or Splunk
- What an event looks like when it arrives
- How to reach other SIEMs
Before you start
- A Datadog API key, or a Splunk Cloud HTTP Event Collector endpoint and token
- A plan that includes Log Streams, see pricing
In the dashboard
Open Log Streams
Select Settings, then Organization Settings. Open Audit Logs, then Log Streams, and select Add Stream.
Enter the destination
For Datadog, enter the API key and choose the Site: US1 (datadoghq.com), US3 (us3.datadoghq.com), US5 (us5.datadoghq.com), EU (datadoghq.eu), AP1 (ap1.datadoghq.com) or AP2 (ap2.datadoghq.com).
For Splunk, enter the HEC endpoint, for example https://http-inputs-example.splunkcloud.com/services/collector, and the HEC token. Index, Source and Source type are optional.
Create the stream
Select Create Stream. The stream shows Pending, then Healthy once deliveries succeed. Error means Metorial cannot deliver to the destination. The Events tab lists when the stream was created, started, paused or recovered.
Keys and tokens are not shown again after you save. To rotate one, enter the new value on the stream's overview page.
What arrives
In Datadog, each event is a log with these fields. audit_log holds the full audit event.
In Splunk, each event arrives at the HEC endpoint with a time field and the index, source and source type you set.
Audit events cover administration and security activity such as members, API keys, service accounts, portals, access groups and access requests. Tool arguments and results are not part of an audit event.
Other SIEMs and full payloads
Run an Outpost, a proxy in your own network that sees every tool call, prompt get and resource read. It ships with loggers for Datadog, Splunk, Elasticsearch, any HTTP endpoint and an OpenTelemetry collector. This middleware logs each tool call:
Pass it to McpProxy.create() with a logger such as OtelLogger.
Check it worked
Make an audited change, such as creating and deleting a test access group. Confirm Metorial recorded it, then find it in your SIEM:
In Datadog, search for source:metorial-audit-log. In Splunk, search the index and source type you set.
Troubleshooting
"Must be a Datadog site hostname."
Pick the Site that matches the URL you use to sign in to Datadog.
"Must be an HTTPS Splunk Cloud URL."
The HEC endpoint must start with https:// and be a Splunk Cloud host. For self-managed Splunk, use an Outpost with the Splunk or HTTP logger.
The stream shows Paused
Delivery stopped after 100 failed attempts in a row. Fix the API key, site, endpoint or token, then resume the stream under Delivery on its overview page.
Next steps
- Audit MCP tool calls: what Metorial logs and how long it is kept
- Keep data in your network: set up the Outpost
- SOC 2 and MCP: use exported logs as evidence