Skip to main content

Logs — Your Complete Audit Trail

Access: Users with Logs permission enabled by their Admin

The Logs module provides a centralized, searchable record of every interaction across your entire workspace. While Traces show you the internal logic of each request, Logs give you the full audit trail — who sent what, when, and what the agent returned.


What are Logs?

Every time a user sends a message to an agent, TraptureIQ records the complete interaction as a log entry. This includes:

  • The user's original prompt
  • The agent's response
  • Token counts (input, output, thinking)
  • Latency (how long the agent took)
  • Model version used
  • Any safety flags or errors

Why it matters:

  • Compliance — Maintain a permanent, tamper-proof record of every AI conversation for regulatory requirements
  • Cost Analysis — Identify which users or agents consume the most tokens
  • Error Tracking — Filter by error types to find agents that are failing or hitting token limits
  • Debugging — Inspect the raw API payloads to understand exactly what was sent and received

Demo Video


How to Use the Logs Page

Step 1: Open the Logs Page

  1. Click Logs in the sidebar.
  2. The page loads with two areas: charts at the top and a log table below.

Step 2: Understand the Layout

Top Area — Volume Charts:

  • A line or bar chart showing request volume over time
  • Helps you quickly spot spikes in activity or error rates
  • Adjusts based on your selected time range

Logs volume charts — Replace with actual screenshot

Main Area — Log Table: A detailed, tabular view of every logged interaction. Key columns include:

ColumnWhat It Shows
TimestampWhen the interaction occurred
AgentWhich agent handled the request
UserWho sent the request
SeverityLog level — INFO, WARNING, ERROR, DEBUG, DEFAULT
LatencyResponse time in seconds
Tokens (Input)Number of tokens in the user's prompt
Tokens (Output)Number of tokens in the agent's response
ModelWhich LLM model was used
Finish ReasonHow the response ended (STOP = normal, MAX_TOKENS = hit limit)

Tip: Columns are resizable — drag the borders to make columns wider or narrower.

Logs table with interaction records — Replace with actual screenshot

Step 3: Filter Logs

Use the filter controls at the top to narrow down results:

FilterWhat It DoesExample Use Case
Severity LevelShow only logs of a specific severity (ERROR, WARNING, INFO, DEBUG, DEFAULT)"Show me only errors from the last 24 hours"
Time RangeLimit to a specific time period"Show me yesterday's logs"
AgentFilter by a specific agent"Show me only Support Bot logs"
UserFilter by a specific user"Show me John's interactions"

Severity levels explained:

LevelColorWhat It Means
ERRORRedSomething went wrong — the agent failed to respond or an exception occurred
WARNINGYellowSomething unexpected happened but the agent still responded (e.g., a deprecated API, rate limit warning)
INFOBlueNormal operation — a standard request-response cycle
DEBUGGreyDetailed diagnostic information (usually only visible when debugging is enabled)
DEFAULTWhiteStandard log entry without a specific severity

Tip: Click any log row to expand the full detail view — raw metadata, grounding citations, safety flags, and the complete agent response.



Common Use Cases

ScenarioWhat to Do
"I need to find all errors from the past week"Set time range to "Last 7 days", filter severity to "ERROR"
"I want to see which agent uses the most tokens"Go to Analytics → Cost Control for per-agent token and cost breakdown
"I need a compliance report of all conversations"Go to Sessions, apply your desired time range and agent filters, and export the records
"I want to see all security breaches or blocked messages"Go to AgentGuard → Content Safety, filter by time range, and click Export CSV
"I want to check why a specific response was blocked"Find the log entry, click to expand, and check the Safety Flags section
"An agent keeps hitting token limits"Filter by the agent and look for entries where the Finish Reason column shows "MAX_TOKENS"

Tips for Beginners

  • Start with INFO level — Most log entries are INFO (normal operations). Switch to ERROR only when investigating issues.
  • Use the volume charts — The charts at the top quickly show you if something unusual is happening (sudden spike in errors, for example).
  • Use filters for compliance reviews — If your organization requires compliance records, use time range + agent filters to narrow down and review the relevant interactions.
  • The Detail Inspector is your friend — When you need to understand exactly what happened in an interaction, the raw JSON payload tells the complete story.