Skip to main content
POST
Read the log lines of one request

Authorizations

Authorization
string
header
required

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

Headers

x-ankra-organisation-id
string

PAT organisation override.

Path Parameters

cluster_id
string<uuid>
required

Body

application/json
request_id
string
required

The request's id, as the requests read answered it. Refused with 400 when shorter than 6 or longer than 128 characters, or holding a space, and with 422 when absent or not a string.

Required string length: 6 - 128
start
string
end
string
since
string
namespaces
string[]
pods
string[]
containers
string[]
source
enum<string>
default:auto

The same source choice as the history query, so the requests and the lines come from one store.

Available options:
auto,
connected,
ankra_hosted
id_field
string

The key the id was read from: one of the requests read's id_keys, or one of them one level down (context.request_id). Any other key is refused with 400. Absent reads the id under any of them.

Response

The request's lines

provider
string
source
string

ankra_hosted when Ankra hosted logs answered; absent for a connected source.

note
string
cluster_attribution
object
start
string
end
string
kept_days
integer | null

The most days the store keeps a line: 7 for Ankra hosted logs, and null for a store of your own.

state
enum<string>

found when lines name the id as their request. not_countable when the search found none of them, which is not a request without lines: the store may keep the id in a field the search of the line's text does not reach.

Available options:
found,
not_countable
matched_by
enum<string>

How the lines were found: a search for the id in the line's text, kept where the line names the id under id_field.

Available options:
text
request_id
string
id_field
string | null

The key the counted lines name the request under, as the lines spell it (the one most of them use), whether or not the body named one; null when state is not_countable.

count
integer | null

How many lines name the id as their request; null when state is not_countable.

count_exact
boolean

True only when the search read every line holding the id and each line counted holds it in its text. Otherwise count is a floor.

lines
object[]

At most lines_shown_limit of the request's lines, oldest first.

lines_shown_limit
integer

The most lines one answer lists: 200.

searched_lines
integer

The lines the search for the id read.

other_lines
integer

The lines the search read that hold the id's text but do not name it as their request.