> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Audit MCP tool calls: what Metorial logs and how to export it
URL: https://metorial.com/docs/platform/guides/audit-logs

What Metorial records for every MCP tool call and admin action, how to review it per person, and how to stream logs to Datadog, Splunk, or OpenTelemetry.

---

Metorial records every MCP tool call with the tool name, arguments, result, status, the person or agent who made it, and the session it belongs to. Admin and security activity goes into a separate organization audit log, with IP address, location, and device details. You can review both per person in the dashboard, stream organization audit logs to Datadog or Splunk with **Log Streams**, and send live MCP traffic to an OpenTelemetry collector or another log destination through an Outpost. Retention is configurable: how many days audit logs are kept, and whether a project stores full message data, intent only, or none.

<PageIntro>
  <Learn>
    * What Metorial logs and where to find it
    * How to review one person's tool calls
    * How to export logs and set retention
  </Learn>
</PageIntro>

## What gets logged [#what-gets-logged]

| Record                 | What it contains                                                                                                                                                     | Where to find it                                      |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| Tool calls             | Tool name, arguments, result, status, source, agent, session, time                                                                                                   | **Integrations**, **Connection Logs**, **Tool Calls** |
| Sessions               | Connection ID, transport, message counts, providers and auth configs used, timeline                                                                                  | **Connection Logs**, **Sessions**                     |
| Errors                 | Failed tool calls with error details                                                                                                                                 | **Connection Logs**, **Tool Errors**                  |
| Per person             | The account's tool calls, connections, and Magic MCP servers                                                                                                         | Workforce, **Identity**, **Accounts**                 |
| Per agent              | The agent's tool calls and connection history                                                                                                                        | Workforce, **Identity**, **Agents**                   |
| Organization audit log | Security and administration activity, including portals, skills, and Workforce, with IP address, country, city or region, ASN, browser, operating system, and device | Organization settings, **Audit Logs**                 |

Protoguard events and provider authentication events also appear in the dashboard's logs.

## Review one person's tool calls [#review-one-persons-tool-calls]

<Steps>
  <Step title="Open the account">
    In Workforce, open **Identity**, **Accounts**, and select the person.
  </Step>

  <Step title="Check their calls">
    Select **Operations**. Each row is a tool call with its status and session. Select a row to see the arguments and result.
  </Step>

  <Step title="Follow the session">
    Select **Connections** to see which client connected, over which transport, and when it was last active. Match the session ID from **Operations** to read the full timeline in [connection logs](/docs/platform/integrations/review-connection-logs).
  </Step>
</Steps>

To search across everyone, open **Integrations**, **Connection Logs**, **Tool Calls**, and select **Filter**. A chart above the list shows volume over time; select a spike to jump to the events behind it.

## Export audit logs to your SIEM [#export-audit-logs-to-your-siem]

**Log Streams** send organization audit logs to Datadog or Splunk.

<Steps>
  <Step title="Open Log Streams">
    In organization settings, open **Audit Logs**, then **Log Streams**, and select **Add Stream**.
  </Step>

  <Step title="Choose a destination">
    For **Datadog**, enter an **API key** and choose the **Site** (US1, US3, US5, EU, AP1, or AP2). For **Splunk**, enter the **HEC endpoint** and **HEC token**, and optionally an **Index**, **Source**, and **Source type**.
  </Step>

  <Step title="Watch its health">
    The stream shows **Pending** until it starts, then **Healthy**. **Error** means Metorial cannot deliver to the destination, and **Paused** means delivery stopped after repeated errors. The **Events** tab lists when the stream was created, started, paused, or recovered.
  </Step>
</Steps>

{/* VERIFY: Log Streams are plan-gated (an upgrade screen exists). Confirm which plans include them and whether MCP tool call events are included in the stream or only organization audit events. */}

Log Streams depend on your plan; see [pricing](https://metorial.com/pricing).

## Send MCP traffic to OpenTelemetry [#send-mcp-traffic-to-opentelemetry]

For a live record of every MCP message in your own systems, run an [Outpost](/docs/platform/guides/keep-data-in-your-network) in your network. Its MCP proxy can log every tool call, prompt get, and resource read in both directions, and ships with loggers for Datadog, Splunk, Elasticsearch, any HTTP endpoint, and an OpenTelemetry collector (`OtelLogger`). Because the Outpost runs on your side, these logs never depend on Metorial's retention settings.

```ts
import { mcpMiddleware, isToolCall, getToolName } from '@metorial/mcp-proxy';

let auditLog = mcpMiddleware({
  name: 'audit-log',
  handle: async (message, call, ctx) => {
    if (isToolCall(message)) {
      ctx.logger.info('audit: tool call', {
        connectionId: ctx.connectionId,
        tool: getToolName(message)
      });
    }
    return call(message);
  }
});
```

Pass a logger such as `OtelLogger` to `McpProxy.create()` along with this middleware. The [Outpost repository](https://github.com/metorial/outpost) has complete examples.

## Set retention [#set-retention]

### Audit log retention [#audit-log-retention]

In organization settings, open **Audit Logs**, then **Retention**, and enter the number of days to keep audit logs. The page shows the maximum your plan allows.

### Message data retention [#message-data-retention]

In project settings, open **Security**, then **Data Retention**, and choose a **Retention level**:

| Level       | What is stored                                                                                        |
| ----------- | ----------------------------------------------------------------------------------------------------- |
| Full        | Message contents and tool calls are stored in full                                                    |
| Intent only | Tool names and the operation descriptions and rationale that agents provide, but not message contents |
| None        | Message contents, tool identity, and tool calls are never stored; sessions and connections only       |

The level applies to sessions started after you save. With **None**, session logs are empty for the project, and tool call analytics and Protoguard prompt scanning are not available. Reduced retention levels depend on your plan.

## Troubleshooting [#troubleshooting]

### Session logs are empty [#session-logs-are-empty]

The project's retention level is probably **None**. Check **Security**, **Data Retention** in project settings.

### A Log Stream shows Error or Paused [#a-log-stream-shows-error-or-paused]

Check the destination credentials: the Datadog API key and site, or the Splunk HEC endpoint and token. The **Events** tab shows when errors started.

### You cannot find a specific call [#you-cannot-find-a-specific-call]

Use **Filter** on **Tool Calls** and narrow by tool, status, agent, or session. For failures, start from **Tool Errors**.

## FAQ [#faq]

### Can we see which employee ran a specific tool call? [#can-we-see-which-employee-ran-a-specific-tool-call]

Yes. Each call is tied to the account or agent that made it, and calls through Magic MCP run under the signed-in person. Open the person's **Operations** page, or filter **Tool Calls**.

### Does Metorial store prompts and tool results? [#does-metorial-store-prompts-and-tool-results]

With **Full** retention, yes. **Intent only** keeps tool names and the agent's stated purpose without message contents, and **None** keeps only sessions and connections.

### Can we send Metorial logs to our SIEM? [#can-we-send-metorial-logs-to-our-siem]

Organization audit logs stream to Datadog or Splunk. For MCP traffic, an Outpost can log to Datadog, Splunk, Elasticsearch, HTTP endpoints, or OpenTelemetry.

### Is this enough for a SOC 2 audit? [#is-this-enough-for-a-soc-2-audit]

Logs are one part of the evidence. See [Meet SOC 2 requirements when employees use AI with MCP tools](/docs/platform/guides/soc-2-with-mcp) for how they fit with access controls.

To see how other MCP gateways handle audit logs and SIEM export, see [MCP gateway audit logs and SIEM export compared](/docs/compare/audit-and-logging) in the [MCP gateway comparison](/docs/compare).

## Related pages [#related-pages]

<Cards columns="2">
  <Card title="Review connection logs" icon="line-chart" href="/docs/platform/integrations/review-connection-logs">
    Trace a session and inspect individual tool calls.
  </Card>

  <Card title="Manage Workforce accounts" icon="group" href="/docs/platform/workforce/manage-accounts">
    Review a person's servers, operations, and connections.
  </Card>

  <Card title="Keep data in your network" icon="server" href="/docs/platform/guides/keep-data-in-your-network">
    Run an Outpost and choose a retention level.
  </Card>

  <Card title="Audit logs on metorial.com" icon="external-link" href="https://metorial.com/features/audit-logs">
    How Metorial records every interaction.
  </Card>
</Cards>