K8s Logs

Search logs using LogQL queries

Search logs using Loki-style LogQL syntax

post/api/v1/k8s/logs/search/logql

Request

  • Base URL
    http://localhost:8080
  • Auth
    none declared

Request body

directionstring

forward/backward

endstring

End time

labelsobject

Additional label filters

limitinteger

Result limit

querystring

LogQL query: {app="web"} |= "error"

startstring

Start time

stepstring

Step for aggregations

Response

OK

app_namestring
cluster_idstring
container_namestring
created_atstring
fingerprintstring

Log fingerprint for deduplication

idstring
labelsobject

Loki-inspired enhancements

line_numberinteger
log_levelstring
messagestring
namespacestring
org_idstring
parsedobject

Parsed JSON/structured data

pod_namestring
streamstring

stdout/stderr

timestampstring
user_idstring

Changes

No recorded changes to this operation across all 1 revision of this API.