Skip to main content
POST
Group cluster log lines into patterns (browser session)

Authorizations

ankra_session
string
cookie
required

Browser session. Mutations also require X-Ankra-CSRF.

Path Parameters

cluster_id
string<uuid>
required

Body

application/json
step_seconds
integer
required

The width of one bar in seconds, on the same grid as the log volume count: at least 10, and at most 500 bars over the window.

Required range: x >= 10
start
string
end
string
since
string
raw_query
string

Applied as on the history query: the patterns group the lines it returns.

namespaces
string[]
pods
string[]
containers
string[]
source
enum<string>
default:auto

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

Available options:
auto,
connected,
ankra_hosted
level
any

Not applied yet. Refused with 400 whenever it names a value, rather than grouping every level.

levels
any

Not applied yet. Refused with 400 whenever it names a value.

min_level
any

Not applied yet. Refused with 400 whenever it names a value.

exclude
any

Not applied yet. Refused with 400 whenever it names a value.

cursor
any

Refused with 400 whenever it names a value: patterns always group the newest lines of the window.

Response

Patterns among the newest matching lines

provider
string
source
string

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

note
string
cluster_attribution
object
start
string

The first bar's start: the requested start taken down to the whole second.

end
string

The last bar's end: the requested end taken up to the whole second.

step_seconds
integer
bucket_count
integer

The number of bars each pattern carries.

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.

patterns
object[]

At most pattern_limit patterns, the most lines first.

distinct_patterns
integer

Every pattern among the sampled lines.

pattern_limit
integer

The most patterns one answer lists: 100.

patterns_truncated
boolean

True when distinct_patterns is more than the patterns listed.

sampled_lines
integer

How many of the newest matching lines were grouped.

sample_limit
integer

The most lines one answer groups: 1000.

total_hits
integer

The store's count of matching lines in the window.

total_hits_relation
enum<string>
Available options:
eq,
gte
counts_are_exact
boolean

True only when the sampled lines were every matching line. Otherwise every count, share and bar is within the newest sampled_lines of total_hits.

history_start
string
history_end
string