Usage
Arguments
32-character hexadecimal trace ID to filter logs
Organization slug. If not provided, will auto-detect from DSN or config.
Flags
Number of log entries to retrieve (1-1000)Alias:
-nFilter query using Sentry search syntaxAlias:
-qStream logs in real-time. Optionally specify poll interval in seconds (default: 2s).When enabled, continuously polls for new logs. Press Ctrl+C to stop.Alias:
-fOutput as JSON (one log entry per line)
Examples
List logs for a trace
List logs with explicit org
Stream logs in real-time
Stream with custom poll interval
Filter to errors only
Show more logs
Output as JSON
Output
Human-readable format
Displays a table with:- Timestamp (ISO 8601)
- Severity level
- Log message
JSON format
Outputs one JSON object per log entry, one per line (newline-delimited JSON). Each log object includes:timestamp- ISO 8601 timestamptimestamp_precise- Nanosecond-precision timestampseverity- Log levelmessage- Log message- Additional fields from the Sentry API
Notes
- The trace-logs endpoint is org-scoped, so only organization resolution is needed
- Default time period is 14 days for trace logs
- In follow mode, the command polls every 2 seconds by default (configurable with
-f <seconds>) - Press Ctrl+C to stop streaming mode cleanly
- The trace ID must be a 32-character hexadecimal string