When AI agents send emails on your behalf, you need a record of what happened. nylas audit logs summary is part of that audit trail.
The nylas audit logs summary command aggregates CLI usage over a configurable time window â total commands run, error rates, most-used commands, top invokers (AI agents vs humans), and busiest hours. Use --days to set the window and --json for dashboard-ready output.
Syntax
nylas audit logs summary [--days N]
Examples
7-day summary (default):
nylas audit logs summary
30-day summary:
nylas audit logs summary --days 30
JSON output for dashboards:
nylas audit logs summary --days 7 --json
Tips
CI/CD ready: This command works in non-interactive mode. Set NYLAS_API_KEY as an environment variable and it picks up credentials automatically.
Pipe to jq: nylas audit logs summary --json | jq '.' gives you structured data you can filter and transform.
How It Works
Every entry in the audit log captures: the exact command, all arguments (with secrets redacted), the invoker identity (human or AI agent name), the exit code, and a nanosecond timestamp. This level of detail is what compliance auditors expect.
Related Commands
-
nylas audit initâ Initialize audit logging for the Nylas CLI. Creates the log directory, default c -
nylas audit logs showâ View and filter audit log entries. Supports filtering by date range, command, st -
nylas audit logs clearâ Clear all audit log entries. This is a destructive action â consider exporting l -
nylas audit exportâ Export audit logs to JSON or CSV for compliance, analysis, or backup
Full docs: nylas audit logs summary reference â all flags, advanced examples, and troubleshooting.
All commands: Nylas CLI Command Reference
Get started: brew install nylas/nylas-cli/nylas â other install methods
Top comments (0)