PromptGuard maintains detailed logs of all security events and interactions, accessible through the dashboard for security analysis and compliance reporting. Enterprise plans include persistent audit logs with integrity hash chaining for SOC 2 compliance.
Current Availability
Dashboard Access ✅
View audit logs and security events through the dashboard:- Navigate to Interactions: app.promptguard.co → Projects → [Your Project] → Interactions
- Filter and Search: Use filters to find specific events by type, date, or content
- Export Data: Download interaction data for analysis
What Gets Logged
PromptGuard captures comprehensive audit trails for:Security Events
- Threat Detection: Security violations, blocked requests, policy triggers
- PII Redaction: Automatic masking of sensitive data
- Policy Decisions: Allow, block, or redact actions
- Detection Methods: Regex, ML, or agentic evaluator used
API Activity
- Request Details: All API calls with timestamps and metadata
- Response Information: Status codes, processing times
- Error Events: Failures, timeouts, and error conditions
- Usage Tracking: Token consumption and costs
Log Structure
Standard Log Format
All security events follow a consistent structure:Event Categories
Security Events
PII Redaction Events
Dashboard Access
Viewing Interactions
Access your security events through the dashboard:- Navigate: app.promptguard.co → Projects → [Your Project] → Interactions
- Filter: Use the filters to find specific events:
- Flagged Only: Show only blocked/redacted events
- Search: Search in content or reason text
- Date Range: Filter by last N days
- Details: Click on any event to see full details
Exporting Data
Pull interactions via the API and feed them into your own tooling — a SIEM, a data warehouse, a compliance dashboard, or a simple script.Available Filters
| Parameter | Description | Example |
|---|---|---|
project_id | Filter by specific project | proj_abc123 |
flagged_only | Only show blocked/redacted events | true |
search | Text search in content/reason | prompt injection |
days | Filter by last N days | 7 |
page | Page number for pagination | 1 |
page_size | Max events to return per page | 100 |
Best Practices
Log Retention
- Current: Logs are retained based on your plan tier
- Free: 24 hours (no guaranteed retention)
- Pro: 7 days retention
- Scale: 30 days retention
- Enterprise: Custom retention (configurable per organization)
Persistent Audit Trail (Enterprise)
Enterprise plans include a persistent audit trail stored in theaudit_events table:
- Categories:
security,authentication,data_access,configuration,billing - Integrity: Each event has a SHA-256 integrity hash chained to the previous event for tamper detection
- Organization-scoped: Events filtered by your organization context
- SOC 2 ready: Meets audit log requirements for SOC 2 Type II compliance
GDPR Compliance
Enterprise features include GDPR data subject rights:- Data Export:
POST /dashboard/compliance/data-export- Export all your data - Data Deletion:
POST /dashboard/compliance/data-deletion- Delete all your data (requires confirmation)
Compliance
- All security events are logged for compliance
- Logs include timestamps, user IDs, organization IDs, and decision metadata
- Pull audit data via the Interactions API for compliance reporting
- Events include IP address and user agent for forensic analysis
Next Steps
View Interactions
Access your security events in the dashboard
Analytics
View comprehensive analytics and metrics
Usage Tracking
Monitor API usage and costs
API Reference
Complete API documentation