Skip to main content
Each read route accepts its own query keys. A route in the filter matrix rejects an unknown key or a value of the wrong type with 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:
Add filters in this order:
  1. Select the project with project_id or project_ids.
  2. Add a time range with since, and optionally until.
  3. Add service, release, environment, status, or signal-specific filters.
  4. Set limit for a smaller page.
  5. Add cursor fields only after a cursor response returns them.
Each returned row matches every filter in the request. An omitted filter uses the route default. For example, 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, and attribute_filters.
  • Logs accept status: active (default), ignored, or all. ignored selects the logs that a log rule hides from the active view.
  • Issues accept issue status: unresolved, resolved, or archived. ignored is an older name for archived and selects the same issues.
  • Issues accept severity: info, warning, error, or critical.
  • Issues accept priority: high, medium, or low.
  • Issues accept assignee: me for the issues assigned to the signed-in account, none for issues without an assignee, my_teams for the issues assigned to your teams, a user ID, or team:<team_id>.
  • Actions and metrics accept name.
  • Actions accept distinct_id.
  • Traces accept trace status and min_duration_ms.
  • Deployments accept status: succeeded or failed.
The log and issue 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 accept response_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 adds priority and priority_source.
  • Version 3 has all version 2 fields. It adds assignee.
  • Version 4 has all version 3 fields. assignee has type: user or team.
Every version accepts status=archived, priority, and assignee. See the issue response.

Severity filter

Use severity=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:
For trace detail and summary, percent-encode trace_id as the path segment. Do not send it as a query key.

Project scope

Use project_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.
LogBrew rejects these selections with 422 and validation_failed:
  • A request that has both project_id and project_ids.
  • A project_ids value with fewer than 2 or more than 50 IDs.
  • A duplicate ID or an ID that is not a UUID.
If one ID in 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:
  • since is required. until is optional and defaults to the request time.
  • The range from since to until is at most 31 days.
  • interval is auto, 1m, 5m, 15m, 1h, 6h, or 1d. The default is auto. An interval that makes more than 500 buckets fails.
  • service_name, release, and environment are exact filters.
For metric series, 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

Use GET /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 contain status in one project:
The response is an object, not a bare array. This synthetic example has 2 attributes and another page:
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 use pagination=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.
  • contains and starts_with need a non-empty string.
  • A number must be finite and from -9,007,199,254,740,992 to 9,007,199,254,740,992.
A log that the index cannot search does not match a filter. It can still appear in a request without attribute_filters. For the log response, see Log response.

Correct attribute errors

Each error below returns 422 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. Send pagination=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.time goes to cursor_time.
  • next_cursor.id goes to cursor_id.
  • For traces, next_cursor.trace_id goes to cursor_trace_id.
  • For releases, add cursor_ before each returned field name, for example next_cursor.release goes to cursor_release.
Stop when 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 pagination value other than cursor.
  • Cursor fields without pagination=cursor.
  • An incomplete cursor field set.
  • A cursor_time that is not an RFC3339 timestamp.
A cursor marks a position; it does not freeze the data. Start a new first page when you need a fresh view. The CLI uses the same fields:

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:
  1. Confirm the project ID.
  2. Remove optional filters one at a time.
  3. Widen since if the expected event is older. Remove until or move it later if the expected event is newer.
  4. Compare service_name, release, and environment with the values that your SDK sends.
  5. For logs, add status=all if a log rule can hide the expected log.
  6. 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 returns 422:
Common fixes:
  • 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.
For error codes and recovery, see API errors. For response bodies, see Telemetry response shapes.