Skip to main content
Admin › Monitoring › Guardrail Logs
Guardrail logs record all events detected and processed by guardrails configured on agents.
  • Transparently track which user entered which sensitive info and how which guardrail processed it.
The same guardrail logs can also be viewed from Admin > Code Gateway > Guardrail Logs.
Guardrail Logs main screen

Guardrail Logs main screen — filter area, log table


What are Guardrail Logs?

When users converse with the AI, guardrails validate inputs and outputs.
  • When sensitive info is detected, the configured strategy (block, redact, mask, etc.) is applied and the result is logged.

Log Entry Structure

Each guardrail log entry includes:

Action Types

Detection Pattern

Detection methods are grouped into two categories. Individual source meanings:

Filter Options


Log Detail View

Click a log entry to see details.
Guardrail log detail modal — action, detection source, detection detail, original content, and Trace button

Guardrail log detail modal — detection info, original content, and the Trace button at the bottom-right


Tracing Integration

In guardrail log details, the Trace button lets you see the complete processing of that message.
1

Pick an entry in Guardrail Logs

Click the log entry for the guardrail event you’re investigating.
2

Click Trace

Click the Trace button at the bottom-right of the detail modal.
3

View full processing

The Trace Detail screen opens, showing the full Run tree — including the guardrail check for that message. Guardrail Runs are shown with red GD badges.
Trace Detail modal — Run tree with guardrail:pii and test-guardrail GD badges, embedding input/output on the right

Trace Detail — guardrail steps (GD badges) in the left Run tree and per-step input/output on the right


Use Cases

  1. Set a time range and view logs by Detection Pattern
  2. Review log action events to gauge false positive rate
  3. Adjust regex or exclude patterns with many false positives
  4. Add new patterns or blocked words for missed detections
  1. Look up a specific user’s guardrail events via user search
  2. Check repeated block patterns
  3. Review original content to determine intentional sensitive info leak attempts
  4. Cross-analyze with related audit logs for full context
  1. Filter Detection Pattern to LLM-based
  2. Review original content of blocked messages
  3. If excessive blocking, strengthen allow examples in the Judge prompt
  4. If missing blocks, add block examples

Guardrail Settings Integration

Improve guardrail settings based on patterns found in guardrail logs.
See Guardrails for guardrail configuration.