v1.6.0CLILatest
1 min read

Project Audit & Request Logs

CLI

View, filter, inspect, and stream real-time audit and request logs for your ApiVault projects directly from the terminal.

#CLI Project Logs & Live Tailing

The ApiVault CLI now includes a dedicated apivault logs command group to inspect audit activity and API request logs without leaving your terminal.

ShellShell
# View recent project logs
apivault logs

# Stream live project logs in real time
apivault logs --follow
apivault logs tail

# Filter logs by status, method, source, or search query
apivault logs --status error --source mcp
apivault logs --method POST --search "/api/keys"

# Inspect detailed metadata and payload of a specific log entry
apivault logs get <log-id>

#Highlights

  • Formatted Table & Stream Views: Color-coded HTTP status badges, request methods, durations, and actor emails.
  • Live Following: Follow new events as they happen with apivault logs -f or apivault logs tail.
  • Advanced Filtering: Filter by --status, --source, --method, --search, --event-type, --key, --date, and --end-date.
  • JSON Output: Pass --json for full machine-readable integration into CI/CD or log forwarders.