Check whether audit logging is enabled and show the current log file location. Essential for SOC 2 compliance and AI agent oversight.
The nylas audit logs status command reports whether audit logging is active, the path to the current log file, its size on disk, and the number of entries recorded. Use it to confirm logging is working or to find the log file for review.
Syntax
nylas audit logs status
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.
Examples
Check audit logging status:
nylas audit logs status
Get status as JSON for monitoring scripts:
nylas audit logs status --json
Tips
Combine with other commands: Chain nylas audit logs status with other Nylas CLI commands using shell pipes and variables for complex workflows.
Debug mode: Add --verbose to see the underlying API requests and responses — useful when something doesn't behave as expected.
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 summary— View summary statistics of audit log entries including command counts, error rat -
nylas audit logs clear— Clear all audit log entries. This is a destructive action — consider exporting l
Full docs: nylas audit logs status 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)