Logs

Introduction

Each source's Logs tab shows access-log entries for proxied requests: status, timing, queue wait, and outcome. Retention depends on your billing plan.

An assistant connected over MCP can search the same entries with search_source_logs when an owner or admin allowed it to read access logs.

Sessions and keys

A call made with a key minted in an agent session is logged with the session's id. Click an entry and View agent session to see the session's calls on every source, or All calls with this key to filter the tab to that key.

A session's page links to each source's Logs tab filtered to the session. The filter shows above the table; remove it to see every call again.

Database source queries

A database source logs one entry per query, written when the query finishes — including one that outlived waitMs and completed as a job. Alongside the usual timing and outcome, a query entry carries the statement (truncated), how many rows came back, whether it was capped, and the key that ran it.

That last column is what makes "who ran what against production" answerable — a shared connection string cannot tell you, because the database only ever sees one user.

A statement the database refused — a write attempted under a read-only role, or a table the role was never granted — is recorded as its own outcome rather than as a generic failure, with the statement text kept. A rejection there is an attempt to escape read-only mode, and the statement is the only useful evidence of what was tried.

Policy decisions

On an API source, each entry records what the source's policy decided. Filter the tab by:

  • Denied by policy: refused with 403. The outcome reads denied by policy, or denied by key when the policy allows the call and the key was narrowed to less. The Key column names the key that was refused.
  • Allowed by policy: everything the policy let through.

Tags

Callers can attach a short searchable tag with X-Swarmvia-Tags:

curl -sS "https://your-source.swarmvia.cloud/v1/orders" \
  -H "X-Swarmvia-Key: $ACCESS_KEY" \
  -H "X-Swarmvia-Tags: celigo-order-sync"

Tags are sanitized and capped at 64 characters. They are stored only in access logs. They do not affect admission.

What to look for

  • Auth failures (401 / 403) before a slot is taken
  • Calls the policy denied, and which key made them
  • Admission rejects (429, 504) vs upstream status codes
  • Queue wait (queued-ms) when the source is saturated
  • Cache hits (still metered as requests) when using response cache

Next steps