422 and validation_failed, unless the matrix says otherwise. Friendly aliases such as project,
trace, and user are not query keys. Do not move a filter from one route to
another.
Build a filtered request
Put the query string after the path. Use--data-urlencode so that reserved
characters stay safe. This request reads critical logs for one project from
the last 24 hours:
- Select the project with
project_idorproject_ids. - Add a time range with
since, and optionallyuntil. - Add service, release, environment, status, or signal-specific filters.
- Set
limitfor a smaller page. - Add cursor fields only after a cursor response returns them.
GET /api/logs uses status=active when you
omit status.
Filter matrix
Keys in the “Required” column must be in the request. All other keys are optional.
For issue investigation,
selection is first, latest, or recommended.
Send selection or occurrence_id, not both. Both need response_version
from 2 through 14. With version 2 or later and no selector, LogBrew uses
recommended. Get an occurrence_id from
GET /api/telemetry/issues/{issue_id}/events.
The POST analytics routes take a JSON body. See
Product analytics.
Shared and signal-specific filters
service_name, release, and environment narrow every telemetry list. Use
the exact values that your SDK sends.
Some filters belong to one signal:
- Logs accept
search,trace_id,severity, andattribute_filters. - Logs accept
status:active(default),ignored, orall.ignoredselects the logs that a log rule hides from the active view. - Issues accept issue
status:unresolved,resolved, orarchived.ignoredis an older name forarchivedand selects the same issues. - Issues accept
severity:info,warning,error, orcritical. - Issues accept
priority:high,medium, orlow. - Issues accept
assignee:mefor the issues assigned to the signed-in account,nonefor issues without an assignee,my_teamsfor the issues assigned to your teams, a user ID, orteam:<team_id>. - Actions and metrics accept
name. - Actions accept
distinct_id. - Traces accept trace
statusandmin_duration_ms. - Deployments accept
status:succeededorfailed.
severity filters compare the effective severity. If a
rule changed the severity, the filter uses the rule value. See
Severity values.
Time range
since accepts a positive whole number of seconds, minutes, hours, or days, such as 30m, 24h, or 7d, or an RFC3339 timestamp. A compact duration is relative to the time of
each request.
until accepts an RFC3339 timestamp only. It is an exclusive end time: a row
at exactly until is not in the result. since is inclusive. For example,
since=2026-10-01T00:00:00Z and until=2026-10-02T00:00:00Z select 1 full
day. LogBrew compares times to the millisecond.
until must be later than since. If it is not, or if until is not an
RFC3339 timestamp, the request fails with 422 and validation_failed.
For a multi-page read, choose one RFC3339 start time and keep it on every page.
Keep the same until on every page too.
This request reads error logs from 1 day:
The deployment list uses different time rules. Its
since and until
accept RFC3339 timestamps only, and both are inclusive. They compare the
time when the deployment finished.Issue response version
The issue list and the issue detail acceptresponse_version=1,
response_version=2, response_version=3, or response_version=4. Version 1 is the default.
Another value fails with 422 and validation_failed.
- Version 1 shows the archived state as
ignored. It does not show priority. - Version 2 shows the archived state as
archived. It addspriorityandpriority_source. - Version 3 has all version 2 fields. It adds
assignee. - Version 4 has all version 3 fields.
assigneehastype:userorteam.
status=archived, priority, and assignee. See the
issue response.
Severity filter
Useseverity=info|warning|error|critical on GET /api/logs. The older
level key is a compatibility alias. Both keys accept the canonical values
and the aliases trace, debug, warn, and fatal. LogBrew changes an
alias to its canonical value before it compares.
If a request sends both severity and level, LogBrew normalizes both first.
Conflicting values are rejected with:
Trace filters
For trace discovery,status is error or ok. Omit it to include both.
min_duration_ms must be zero or greater. It applies only to trace discovery.
This request finds error traces that took at least 500 milliseconds:
trace_id as the path segment.
Do not send it as a query key.
Project scope
Useproject_id=<project-uuid> to read one project. On the routes that list
project_ids in the matrix, use project_ids=<uuid>,<uuid> for an exact set
of 2 to 50 projects. On those routes, omit both keys to read every project
that the account can read. A route that requires project_id accepts 1
project only. GET /api/telemetry/summary/volume/combined requires
project_ids and accepts 1 to 50 IDs.
422 and validation_failed:
- A request that has both
project_idandproject_ids. - A
project_idsvalue with fewer than 2 or more than 50 IDs. - A duplicate ID or an ID that is not a UUID.
project_ids is a project that the account cannot read, the
request fails with 404 and not_found. Do not remove that ID and continue.
Ask the user to choose a new set.
Keep the same project scope on every cursor page. Do not remove the project
filter after an empty result, because that asks a different question.
Bucketed series
GET /api/telemetry/metrics/series returns one metric as time buckets.
GET /api/telemetry/summary/volume returns signal counts as time buckets.
GET /api/telemetry/summary/volume/combined returns the same counts for a set
of projects together. A trace with spans in more than 1 selected project
counts once. These routes use these rules:
sinceis required.untilis optional and defaults to the request time.- The range from
sincetountilis at most 31 days. intervalisauto,1m,5m,15m,1h,6h, or1d. The default isauto. An interval that makes more than 500 buckets fails.service_name,release, andenvironmentare exact filters.
name is the exact metric name from
GET /api/telemetry/metrics. group_by is none, service_name, release,
or environment. series_limit is 1 to 20.
For signal volume and combined signal volume, until must not be in the
future, and response_version is 1 only.
Filter log attributes
UseGET /api/logs/attributes to find the attribute paths and types that you
can search. Then send attribute_filters to GET /api/logs. Both requests
need since.
Read the attribute catalog
This request finds numeric paths that containstatus in one project:
type is string, number, or boolean. observed_count is the number of
logs in the range that have that path and type. last_seen_at is the time of
the latest one. One log can have many paths. Do not add the counts to get a
number of logs.
coverage tells you which logs an attribute filter can search:
The 3 groups add up to
total_logs. The catalog type, search, and cursor
do not change the coverage. An empty attributes list does not mean that
total_logs is zero.
The catalog has no status key. Its severity filter compares the captured
severity, not the effective severity.
search is a path substring of 1 to 128 bytes without control characters.
limit sets the number of attributes on a page.
Continue the catalog
The catalog does not usepagination=cursor. Repeat every filter, and copy
all 3 fields from next_cursor:
Stop when
next_cursor is null.
Apply a typed filter
Copy the path and type from the catalog. Paths use JSON Pointer syntax, not dotted keys. Keep any~0 or ~1 escape in the path unchanged.
This request reads logs whose numeric response status is 500 or more:
attribute_filters is a JSON array of 1 to 4 filters. A log must match every
filter. Each filter has path, type, operator, and value. The JSON type
of value must match type: the number 500 is not the string "500".
ne matches only logs that have the path. A log without the path does not
match ne. For string, case_sensitive is optional and defaults to
false. LogBrew rejects "case_sensitive": true for number and
boolean.
These limits apply:
- The JSON array is at most 4,096 bytes.
- A string value is at most 1,024 bytes.
containsandstarts_withneed a non-empty string.- A number must be finite and from -9,007,199,254,740,992 to 9,007,199,254,740,992.
attribute_filters. For the log response, see
Log response.
Correct attribute errors
Each error below returns422 with validation_failed:
Correct the request before you retry. Do not remove a filter, because that
changes the result.
Cursor pagination
Cursor mode is opt-in. Without it, list routes return a bare array. Sendpagination=cursor without cursor fields for the first page. For each next
page, repeat every filter and send the complete cursor field set:
Map the returned
next_cursor fields to the next request:
next_cursor.timegoes tocursor_time.next_cursor.idgoes tocursor_id.- For traces,
next_cursor.trace_idgoes tocursor_trace_id. - For releases, add
cursor_before each returned field name, for examplenext_cursor.releasegoes tocursor_release.
next_cursor is null. Do not calculate a cursor from the last row.
The release cursor does not change the selected projects. Keep the original
project_id or project_ids.
limit sets the page size. A page can contain fewer rows. These routes do
not accept page or page_number.
On most routes, LogBrew changes a
limit above the maximum to the maximum.
The deployment list rejects a limit outside 1 to 100 with 422. The
deployment list always returns a page object with next_cursor, also without
pagination=cursor.
LogBrew rejects these requests with 422 and validation_failed:
- A
paginationvalue other thancursor. - Cursor fields without
pagination=cursor. - An incomplete cursor field set.
- A
cursor_timethat is not an RFC3339 timestamp.
Diagnose an empty result
An empty list means that no row matched every filter. It says nothing about other signals. Check the request in this order:- Confirm the project ID.
- Remove optional filters one at a time.
- Widen
sinceif the expected event is older. Removeuntilor move it later if the expected event is newer. - Compare
service_name,release, andenvironmentwith the values that your SDK sends. - For logs, add
status=allif a log rule can hide the expected log. - Confirm that the route accepts each filter.
Recover from a rejected query
A rejected query returns the standard error envelope. An unknown key or a value of the wrong type returns422:
- Replace a friendly alias with the key from the filter matrix.
- Send every continuation cursor field that the route needs.
- Remove cursor fields from the first page request.
- Use only one project selector.
- Replace an unsupported severity or trace status with a canonical value.
