Audit Logs
AD Unlock maintains comprehensive audit logs for security and compliance.
What’s Logged
Request Events
| Event | Details Captured |
|---|---|
| Request received | User, phone, timestamp |
| Intent classified | Classification result |
| User verified | OTP status, attempts |
| Risk calculated | Score, factors |
| Policy evaluated | Matching policy, decision |
| Job executed | Action, result, duration |
| User notified | Channel, status |
Admin Events
| Event | Details Captured |
|---|---|
| Login | User, IP, device |
| Settings changed | Field, old/new values |
| Policy modified | Changes made |
| User enrolled | User, phone, admin |
| Connector created | Name, admin |
| Certificate renewed | Connector, admin |
Connector Events
| Event | Details Captured |
|---|---|
| Connected | Connector ID, IP |
| Disconnected | Reason, duration |
| Job received | Job ID, type |
| Job completed | Result, duration |
| Error | Error type, details |
Log Entry Example
{
"id": "log_abc123",
"timestamp": "2024-01-15T10:32:45.123Z",
"tenant_id": "tenant_xyz",
"event_type": "request.completed",
"actor": {
"type": "whatsapp_user",
"phone": "+5511999999999",
"ad_user": "john.doe@company.com"
},
"action": {
"type": "account_unlock",
"target": "john.doe",
"result": "success"
},
"context": {
"conversation_id": "conv_123",
"request_id": "req_456",
"connector_id": "conn_789"
},
"risk": {
"score": 15,
"factors": ["business_hours"]
},
"policy": {
"id": "pol_abc",
"name": "Standard Users",
"decision": "auto_approve"
},
"duration_ms": 1250
}Viewing Logs
Admin Portal
- Go to Audit Log
- Filter by:
- Date range
- Event type
- User
- Action
Export
Export logs for external analysis:
- CSV format
- JSON format
- Date range selection
- Event type filtering
Log Integrity
Immutability
- Logs cannot be modified after creation
- Append-only storage
- Cryptographic checksums
Retention
- Default: 90 days
- Configurable per tenant
- Archived logs available on request
SIEM Integration
Export logs to your SIEM:
Syslog
syslog.adunlock.me:514
Protocol: TCP
Format: RFC 5424Webhook
Configure webhook for real-time events:
- Portal → Settings → Integrations
- Add webhook URL
- Select event types
- Save
API
Query logs via API:
curl -H "Authorization: Bearer $TOKEN" \
"https://api.adunlock.me/admin/audit-logs?from=2024-01-01&to=2024-01-31"Compliance Reports
Generate compliance reports:
- Portal → Reports
- Select report type:
- Activity summary
- User access report
- Failed attempts
- Policy violations
- Select date range
- Generate PDF/CSV
Last updated on