Skip to main content

tollgate stats

Displays aggregate statistics from the Tollgate audit database.

Usage

dotset tollgate stats [options]

Options

OptionDescriptionDefault
--audit-path <path>Custom path for audit database~/.dotset/tollgate.db

Examples

# Show statistics
dotset tollgate stats

# Use custom audit database
dotset tollgate stats --audit-path /var/log/tollgate.db

Output

Tollgate Audit Statistics
========================

Total tool calls:      1,247
  - Allowed:             892 (71.5%)
  - Prompted:            298 (23.9%)
  - Denied:               57 (4.6%)

By Server:
  postgres:              723 calls
  filesystem:            412 calls
  github:                112 calls

By Risk Level:
  safe:                  156 (12.5%)
  read:                  687 (55.1%)
  write:                 312 (25.0%)
  destructive:            78 (6.3%)
  dangerous:              14 (1.1%)

Prompt Approval Rate:    87.2%
Average Response Time:   1.2s

Use Cases

Security Auditing

Review overall policy effectiveness:
dotset tollgate stats

Capacity Planning

Understand usage patterns for scaling decisions.

Policy Tuning

High denial rates might indicate overly restrictive policies. High prompt rates could suggest opportunities for automated allow rules.
  • logs - View individual log entries
  • export - Export logs for detailed analysis