What Gets Logged
Every tool call is logged with:Viewing the Audit Log
- Go to Audit Log in the dashboard
- Browse recent requests or filter by:
- Upstream
- Tool
- Decision type
- Date range
Understanding Decisions
In the audit log, each request has one of these decisions:
Approvals themselves have a separate status (Pending/Approved/Denied/Expired) in the Approvals view.
Automatic Redaction
Latch automatically redacts sensitive values in logged arguments:- Passwords and secrets →
[REDACTED] - API keys and tokens →
[REDACTED] - Long content (>500 chars) →
[TRUNCATED] - Approval tokens → removed entirely
Redacted Fields
Fields matching these patterns are redacted:password,passwd,secrettoken,api_key,apiKeycredential,auth,bearerprivate_key,privateKey
Using the Audit Log
Debugging Agent Behavior
When your agent does something unexpected:- Find the request in the audit log
- Check which tool was called and with what arguments
- See which rule triggered the decision
- Adjust rules if needed
Security Review
Periodically review the audit log to:- Spot unusual patterns (many denied requests, unexpected tools)
- Verify rules are working as intended
- Identify tools that might need stricter policies
Compliance
The audit log provides a complete record for:- Security audits
- Incident investigation
- Understanding AI agent behavior over time
Filtering and Search
Use filters to find specific requests:Retention
Audit logs are stored in your Postgres database. Configure retention based on your needs:- Default: All logs retained indefinitely
- For high-volume deployments, consider periodic cleanup