Logs
Query logs with OQL
Run an OQL log query using the pipeline grammar fetch logs | filter <expr> | sort timestamp desc | limit N. The query is compiled onto the same engine as SearchLogs; timestamp desc is the only supported sort.
POST
Query logs with OQL
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
OQL query string, e.g.
fetch logs | filter severity_number > 10 | filter body contains "error".
Maximum rows to return; a | limit N pipeline command takes precedence.
Opaque cursor for pagination.