sentry log view
View detailed information about a Sentry log entry by its ID.Usage
Target Specification
Arguments
string
required
32-character hexadecimal log entry identifierExample:
string
Optional target in format
<org>/<project> or <project> (searches across orgs)If not provided, auto-detects from DSN in working directory or config defaults.Flags
boolean
default:"false"
Output log data as JSONExample:
boolean
default:"false"
Open the log entry in your default web browser instead of displaying in terminalAlias:
-wExample:Examples
View a log entry (auto-detect context)
View log with explicit org/project
View log with project slug (searches across orgs)
Open log in browser
Output as JSON
Sample Output
Human-Readable Format
JSON Format
Notes
- Organization and project context is required. If not provided explicitly, it’s resolved from DSN detection or config defaults.
- Log entries are typically retained for 90 days in Sentry.
- The
-wflag is useful for quickly jumping to the Sentry web UI for more context around the log entry. - Use
sentry trace view <trace-id>to see the full trace and span tree associated with this log entry.
See Also
- sentry log list - List and stream logs from projects
- sentry trace view - View trace details with span tree
- sentry trace logs - List logs for a specific trace