v4

latestOpenAPI 3.1.02026-07-31155218294.8 KB
Logs & Metrics

Deployment Logs Query

Query deployment logs.

  • Without timestamps (from/to) returns last limit messages (in last month).
  • With from only, returns first limit messages after from (inclusive).
  • With to only, returns last limit messages before to (inclusive).
  • With both from and to, return the first limit messages after from, but not later than to.
  • from and to should be no more than a month apart.
get/v1/deployment_logs/query

Query parameters

deploy_idstring required

the deploy id to get the logs from

the deploy id to get the logs from

pod_namestring nullable

the pod name to get the logs from

the pod name to get the logs from

fromstring nullable

start of period, in fractional seconds since unix epoch (inclusive)

start of period, in fractional seconds since unix epoch (inclusive)

tostring nullable

end of period, in fractional seconds since unix epoch (exclusive)

end of period, in fractional seconds since unix epoch (exclusive)

limitinteger

how many items to return at most (default 100, in [1, 1000])

how many items to return at most (default 100, in [1, 1000])

Headers

xi-api-keystring nullable
x-api-keystring nullable

Response

Successful Response

entriesobject

mapping of pod names to log lines ordered by increasing timestamp