You need a root key with the wildcard (
project.*) permission for the table. A permission for a single doesn’t work here. Create the key under Root Keys in the dashboard sidebar and send it as Authorization: Bearer <root key>. See Root keys.Query rules
- Only
SELECTruns. CTEs, subqueries,UNION, andEXCEPTare fine. - You only ever see your own workspace’s data. To narrow further, filter on
project_id,app_id, orenvironment_id. - The time range can’t reach back further than your plan’s log query range (3 days on Starter, 7 on Pro, 14 on Business), or the query fails with
query_range_exceeds_retention. See Compute limits. - A result larger than 4 MiB fails with
query_memory_limit_exceeded.
{"meta":{"requestId":...},"data":[...]} with one object per row.
Examples
time is a Unix timestamp in milliseconds in both tables, so the examples compare it with toUnixTimestamp64Milli(...).
gateway_requests_v1
One row per request that reached your app. Requests a policy rejected aren’t here. See Request logs.Parsed query parameters. Empty unless a logging policy captured query data.
Key: Value strings. Empty unless a logging policy captured request headers. API keys are redacted.runtime_logs_v1
One row per log line from your instances. Structured attributes are inattributes_text, as a JSON string.
Unix timestamp in milliseconds when the line was stored. Filter on it as well as on
time to make queries over a wide range faster.