---
title: "Stream Integration and MCP Tool-Call Logs to Datadog, Splunk or Any OTLP Backend"
slug: stream-integration-and-mcp-tool-call-logs-to-datadog-splunk-otlp
date: 2026-12-03
author: The Truto Team
categories: [Engineering, "AI & Agents"]
excerpt: "What it takes to get every customer's integration calls and AI agent tool calls into the log tool your team already uses, and what Truto streams."
tldr: "Truto's Pro add-on ($499 a month) streams the logs of every Unified, Proxy and Custom API call, MCP tool call, sync run and webhook delivery to Datadog, Splunk, Microsoft Sentinel, any OpenTelemetry (OTLP) collector, Elasticsearch or an S3-compatible bucket. Each log carries the connected account, so you can filter and alert per customer without building the pipeline yourself."
canonical: https://truto.one/blog/stream-integration-and-mcp-tool-call-logs-to-datadog-splunk-otlp/
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://truto.one/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Stream Integration and MCP Tool-Call Logs to Datadog, Splunk or Any OTLP Backend


When a customer says "the Salesforce sync stopped" or "the agent didn't update the ticket", the first question is what the integration did. If those logs live in a separate dashboard, your on-call engineer has to leave the tool they use for everything else. Your alerts and dashboards also cannot see them.

The Pro add-on on Truto ($499 a month, see [pricing](https://truto.one/pricing/)) streams Truto's logs into the tool your team already searches. This post covers what gets streamed, how it helps, and what you would build to do the same thing yourself.

## What Truto streams, and where

Truto writes a structured log for every request it handles and every background job it runs. With log streaming, you add an **observability destination** to an environment, and Truto sends that environment's logs to it ([log forwarding docs](https://truto.one/docs/guides/observability/log-forwarding/)).

Six destination types are available:

- **Datadog**, with your own tags, and HTTP fields under Datadog's standard `http.*` attributes.
- **Splunk HEC**, with your choice of index, source and source type.
- **Microsoft Sentinel**, through the Azure Monitor Logs Ingestion API.
- **OpenTelemetry (OTLP)** over HTTP, for Grafana, an OpenTelemetry Collector or any other backend that accepts OTLP logs.
- **Elasticsearch**, with Elastic Common Schema fields.
- **S3-compatible storage**: Amazon S3, Google Cloud Storage, Cloudflare R2 or MinIO, as an archive.

An environment can have several destinations. Each gets its own copy of every log, and each has its own filter by log type ([log types](https://truto.one/docs/guides/observability/log-forwarding/#log-types)):

| Log type | What it covers |
| --- | --- |
| API | Unified, Proxy and Custom API calls, MCP calls, incoming webhooks |
| Durable Object | Sync job runs, webhook deliveries, workflows |
| Queue | Events that start runs and fan out webhooks |
| Alarm | Cron triggers, scheduled actions, token refreshes |
| Audit | Who changed what in your Truto team |

The setup steps, the payload for each destination and the OTLP field mapping are in [Send Truto logs to OpenTelemetry (OTLP), Splunk, Sentinel, Elasticsearch and S3](https://truto.one/blog/send-truto-logs-to-opentelemetry-otlp-and-more-destinations/).

## What is in each log

An API log holds the request line and its result. The fields include ([what a forwarded log looks like](https://truto.one/docs/guides/observability/log-forwarding/#what-a-forwarded-log-looks-like)):

- `http_method`, `http_url` and `http_status_code`
- `duration`, in milliseconds
- `request_type`: `unified`, `proxy`, `mcp`, `admin` or `environment_integration_webhook`
- `integrated_account_id`, `integration` and `resource`
- `environment_id`
- for MCP calls: `mcp_server_id`, `mcp_method` and `tool_name`

Truto's logs do not store request or response bodies. A log tells you that a `POST` to a HubSpot contact failed with a `400` after 412 ms for one account. It does not hold the contact.

## How streamed logs help

### Debugging one customer's integration

Your product already maps each integrated account to one of your customers. Filter on `integrated_account_id` in Datadog or Splunk, and you see every call for that customer, next to the logs of your own services. The question "did our code send the call, and what did the app answer?" takes one search, not a second dashboard.

### Alerting before the customer notices

Once the logs are in your tool, you can alert on them with the rules you already have. Some examples:

- the rate of `5xx` or `429` statuses for one integration goes up;
- `integrated_account_needs_reauth` is true, so a customer must reconnect ([viewing logs](https://truto.one/docs/guides/logs/viewing-logs/));
- a sync job run logs `sync_job_run_event: failed`;
- a webhook delivery to your endpoint logs `webhook_successful: false`.

### AI agent tool calls

When an agent works in a customer's apps through a Truto MCP server, each tool call is an API log with the tool name and the result status ([MCP servers](https://truto.one/docs/guides/integrated-accounts/mcp-servers/)). Put those logs next to your agent traces, and you can tell a bad tool choice from an app that refused the call. You can also count tool calls per customer and per tool.

### SLAs and reporting

`duration` and `http_status_code` on every call give you the numbers for an internal SLA report: error rate and latency per integration, per customer, per month. You build the report in the tool you already use for your own service.

### Keeping logs longer

The Truto dashboard and API keep 7 days of logs on Free, 30 days on Pay as you go and 90 days with the Pro add-on ([pricing](https://truto.one/pricing/)). Streaming to your own tool or an S3 archive keeps them for as long as your own retention policy says.

## What you would build yourself

You can get the same result without Truto's log streaming. Here is the work, if your integrations run in your own code:

1. **Log every outbound call** in a consistent shape, in every integration, including retries and token refreshes.
2. **Tag each log with the customer and the connected account**, everywhere, so per-customer filters work.
3. **Write one forwarder per log tool**: Datadog's intake API, Splunk HEC, OTLP, and so on. Each has its own format, auth and error codes.
4. **Batch and retry** without slowing down the calls themselves, and without loops on a bad credential.
5. **Redact** tokens, API keys and OAuth codes from URLs and headers before they leave your system.
6. **Keep the forwarder's credentials safe**, and keep them from going to a host that was not checked.
7. **Build the dashboards and alerts** on top.

On Truto, steps 1 to 6 are done for every connected account, and you add a destination in **Settings → Observability** or with `POST /observability-destination` ([log forwarding docs](https://truto.one/docs/guides/observability/log-forwarding/)). Destination secrets are write-only: Truto never returns them. Your team keeps step 7, in the tool it already knows.

## Where this fits

Truto is integration infrastructure that AI agents build and deploy integrations on. An integration that an agent writes can work in a demo and still fail in production, for reasons such as an expired token, a rate limit, or a changed API. Logs that reach your own tool are how your team sees those failures early, for every customer.

Truto charges per API call, $5 per 100,000 calls, and connections are free ([pricing](https://truto.one/pricing/)). Log streaming is part of the Pro add-on at $499 a month, together with 90-day log history, white-label, SAML SSO and the other Pro items. For what a security review asks about these logs, read [Audit-ready integration logs for security reviews](https://truto.one/blog/audit-ready-integration-logs-for-security-reviews/).
