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 source filter such asotel,vercel, orrailwayservice- optionalservice.namefilterrelease- optional release orservice.versionfilterconnector_key- optional connector filterlimitoffset
from and to window.
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:
- recurring message patterns from a bounded newest-first sample;
- exact service, level, environment, and source 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. Click a histogram bucket to narrow the active time window.
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.