Search logs
from- optional ISO 8601 start timestampto- optional ISO 8601 end timestampq- optional free-text search stringlevel- optional comma-separated severity filterenvironment- optional environment filtersource- optional comma-separated source filters such asotel,vercel, orrailwayservice- optionalservice.namefilterrelease- optional release orservice.versionfilterconnector_key- optional connector filterlimitoffset
from and to window.
Chart log volume
group_by to split each time bucket by
service, http_method, service_version, environment, level, or source. Add step to use
an explicit bucket size of 1m, 5m, 15m, 1h, 6h, or 1d:
group value. The response also has the effective granularity and
group_by. The API rejects a step that creates more than 2,000 buckets for the requested range.
Investigate patterns and changes
from, to, q, level, environment, source, service, release, and
connector_key filters as log search. Add dimensions with up to five comma-separated public log
attribute paths to compare their top values between windows:
view=facets. This skips pattern analysis, custom dimensions, and the
previous comparison window:
view=patterns to run only the bounded pattern analysis. It does not wait for current or
previous-window distributions. Use view=changes for comparisons without pattern analysis.
The default view=full runs both. Unrequested arrays are empty; uncomputed totals are zero,
not measured event counts. In pattern mode, use sample_size for the sample count.
- recurring message patterns from a bounded newest-first sample;
- exact service, level, environment, source, release, and connector distributions for the selected window;
- the same exact built-in distributions for the immediately preceding equal-length window;
- sampled requested-attribute distributions for both windows; and
- explicit sample and total counts so clients can describe the evidence accurately.
sampled: true, and
custom_distribution_sample_limit reports that bound; built-in distributions and total counts stay
exact. Use a narrow time range and field filters before widening an investigation. Attribute values
are truncated to 256 characters and each distribution returns at most 12 values. Prefer
low-cardinality operational attributes such as model, role, outcome, or region; do not aggregate
user identifiers, request IDs, prompts, authorization data, or other sensitive/high-cardinality
fields.
The resolved insights window must be ordered (from cannot be after to) and cannot exceed 30
days. Omitting to uses the current time; omitting from uses 24 hours before the resolved to.
Invalid, inverted, or oversized windows return HTTP 400 before a log query runs.
The Squasher dashboard exposes the same workflow through the Results, Patterns, and
Changes views on the Logs page. The volume chart can group the active query and use a selected
time step.
The compact filter sidebar has search fields and selected checkboxes for services, environments,
sources, connectors, and indexed tag values. Selected filters appear above the results as removable
chips. Selecting a tag adds its field clause to the query, so you can combine several tag values
with the direct filters. Use Reset to clear the complete filter set.
Filter changes keep the Logs page open while Squasher refreshes the matching histogram, rows, and
investigation data. The current log results stay visible during the refresh, and the status changes
to Updating. This makes it possible to narrow an investigation without losing the open workflow.
Selecting a log opens a full-height detail drawer on the right side. The drawer keeps the Logs page
visible and preserves the selected event in the URL. Use Attributes for grouped event, trace,
resource, and custom fields; structured JSON values expand in place. Use Trace to debug the
linked trace and span, Related logs for correlated events, and Raw for the complete record.
The drawer can copy the event JSON, a deep link, or an agent-ready prompt. Investigate opens the
hosted Squasher Agent with the event context already in the composer. Trace details and related
logs start loading when the drawer opens. Use the arrow keys or J and K to move between log
events without closing the drawer.
Use the separate disclosure control at the start of a row to expand the message, stack trace, and
attributes without opening the drawer. The table can wrap long messages. Its searchable column
control can pin up to eight direct or custom fields. These view settings stay in the Logs page URL.
The compact result summary shows the visible and total rows plus query time; point to it or focus it
to see scanned and returned row and byte counts.
Agent handoff
Agents should keep log queries narrow and evidence-oriented:squasher logs search --project <project_id> ... for individual rows,
squasher logs insights --project <project_id> --dimension <attribute> ... for normalized
before/after comparisons, or MCP search("logs insights") followed by execute.