Command
nylas audit logs show
View and filter audit log entries. Supports filtering by date range, command, status, grant, request ID, invoker, and source.
Usage
nylas audit logs show [--since DATE] [--until DATE] [--command CMD] [--invoker NAME]Flags
| Flag | Description |
|---|---|
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
| --limit(-n) | Number of entries to show (default: 50) |
| --since | Show entries after this date/time |
| --until | Show entries before this date/time |
| --command | Filter by command name |
| --status | Filter by exit status (success, error) |
| --grant | Filter by grant ID |
| --request-id | Look up a specific request ID |
| --invoker | Filter by invoker (e.g. claude-code, cursor, terminal) |
| --source | Filter by source (e.g. cli, mcp, sdk) |
Examples
Show recent logs
nylas audit logs show -n 20Filter by AI invoker
nylas audit logs show --invoker claude-code --since 2024-01-01Filter by date range
nylas audit logs show --since "2024-01-01" --until "2024-01-31"Look up a specific request
nylas audit logs show --request-id req_abc123JSON output piped to jq
nylas audit logs show --json -n 100 | jq '.[] | select(.status == "error")'Troubleshooting
No logs found
Ensure audit logging is enabled with `nylas audit logs status`. If recently initialized, run a few commands first.
Date filter not working
Use ISO 8601 format (YYYY-MM-DD) or relative formats like '7d', '24h'.
Recommended guides
Create a Manus Skill for Email and Calendar
Build a Manus AI Skill that gives your agent email and calendar access using the Nylas CLI.
Nylas CLI with OpenClaw Personal Assistant
Give your OpenClaw assistant email, calendar, and contacts superpowers. Includes exec-approvals.json setup and a ready-made Nylas skill.
Manage Calendar from the Terminal
DST-aware event creation, timezone locking, AI scheduling, and break time protection.
GPG Encrypted Email from the CLI
Sign, encrypt, and verify email with GPG. Auto-fetches keys from public keyservers.
Give AI Agents Email Access via MCP
Connect Claude, Cursor, or VS Code to your inbox and calendar in one command.
Send Email from the Terminal
Send, read, search, and automate email from your terminal. Works with Gmail, Outlook, and IMAP.
Run nylas audit logs show --help for full help output.