Skip to content

observe_logs_search

Search the log lines of the current product, newest first.

Tool

Search the log lines of the current product, newest first.

Search the log lines of the current product, newest first. Filters are structured; there is no SQL surface. Page with nextCursor.

HTTP
GET /observe/logs/search

Arguments

NameTypeRequiredDescription
qstringLucene-style expression, ANDed with the structured filters. `key:value` (service, environment, severity, trace_id, span_id, body; any other key matches an attribute), "quoted phrases", AND / OR / NOT in uppercase, parentheses. A bare word matches a whole word in the message body. Example: service:api AND NOT severity:INFO AND "connection refused"
tostringNewest timestamp to include, ISO 8601
fromstringOldest timestamp to include, ISO 8601
limitintegerHow many lines to return, 1-1000, default 100
cursorstringThe nextCursor of the previous page; omit for the first page
searchstringMatch the message body. A single word matches whole words and is indexed; anything longer is a case-insensitive substring match
servicestringOnly lines of this service, e.g. "api"
traceIdstringOnly lines of this trace
severityInarrayOnly lines whose severity is one of these, e.g. ["ERROR", "FATAL"]
environmentstringOnly lines of this environment, e.g. "production"

Response

FieldTypeAlwaysDescription
rowsarrayThe matching log lines, newest first
nextCursorstringPass back as cursor for the next page; null when the last page was reached

Try it

Search the log lines of the current product, newest first.

When to use

Search the log lines of the current product, newest first. Filters are structured; there is no SQL surface. Page with nextCursor.

Example

Ask your agent something like this:

Search the log lines of the current product, newest first.

The agent will invoke observe_logs_search with these arguments:

{}

Esc

Start typing to search the docs.

navigateselect