Skip to main content
POST
Query logs with OQL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
oql
string
required

OQL query string, e.g. fetch logs | filter severity_number > 10 | filter body contains "error".

from
string<date-time>
required
to
string<date-time>
required
limit
integer<int32>

Maximum rows to return; a | limit N pipeline command takes precedence.

page_token
string

Opaque cursor for pagination.

Response

200 - application/json

OK

object
string

Object discriminator; always "query". Mirrors QueryTracesResponse.