Trace Page
Trace Page
URL: /trace
The Trace page lets you execute distributed traces across multiple log sources. Use it to correlate events by trace ID, request ID, or any other pattern that appears in your logs.
Starting a Trace
To execute a trace:
- Trace ID — Enter the pattern to search for (e.g.,
req-abc123, a UUID, or any grep pattern) - Trace Group — Select which group of log viewers to search
- Time Range — Specify when to search:
- Range mode: Enter start and end times (e.g.,
1htonow, or6:00amto7:00am) - Day mode: Select a specific date to search that entire day
- Range mode: Enter start and end times (e.g.,
- Report Name — Optional custom name (auto-generated if empty)
- Click Execute

Trace Groups
Trace groups define which log sources to search together. Configure them in your trellis.hjson:
trace_groups: [
{
name: "backend"
log_viewers: ["api-logs", "worker-logs", "database-logs"]
}
{
name: "all"
log_viewers: ["api-logs", "worker-logs", "frontend-logs"]
}
]
Click the Groups button in the header to see configured groups and their log viewers.
Time Formats
The start and end time fields accept flexible formats:
- Relative:
1h,30m,2d(hours, minutes, days ago) - Clock time:
6:00am,14:30,9pm - Special:
now(current time)
Different timezone than production? If the machine running Trellis is in a different timezone than the hosts whose logs you’re tracing, set each log viewer’s
timezone(or alogging_defaults.timezonedefault) to the zone the production logs are written in — otherwise the time window is misaligned and traces come back empty or with the wrong hours. See config: Timezones.
Trace Reports
After executing a trace, a report is generated showing:
- All matching log entries from all log viewers in the group
- Sorted chronologically across sources
- Source column showing which log viewer each entry came from
- Entry details panel for inspecting individual entries

Reports are saved and listed in the Trace Reports table. Click a report name to view it, or delete old reports you no longer need.
Report Features
When viewing a trace report:
- Filter — Search within the results (supports
trace:textto expand matches by trace ID) - Timestamp toggle — Switch between absolute and relative timestamps
- Entry details — Click any row to see all fields with copy buttons
- Delete — Remove the report when done
Expand by ID
When Expand by ID is checked, Trellis searches for additional log entries that share extracted IDs (like request IDs or correlation IDs) from the initial results. This helps find related entries that may not contain the original trace pattern.
Related
- Configuration: trace_groups — Trace group configuration
- Configuration: log_viewers — Log viewer configuration
- trellis-ctl trace — CLI trace commands