dev.knotless.getLogs

The lines an appview logged, for its operators, oldest first: all of one request's by its trace, or the last of a message, a level or a duration. It takes a service token for this method from one of the accounts it names as its operators, or the session cookie of one logged in to its pages. Kept across restarts, at most 30 days. Each read is itself logged, with who asked.

Details · query
Kindquery
Authorityknotless.dev
Indexed

Query

query · GET

Parameters

query string

level

string

Only lines at this level or above.

  • knownValues: error | warn | info | debug | trace

limit

integer

How many, the last of those asked for. Unless given, 500 for a trace, so a request's lines come whole, and 100 otherwise.

  • minimum: 1
  • maximum: 500

message

string

Only lines with this message.

  • knownValues: request | outgoing | sql | git | mcp tool | mcp tool failed | mcp resource | mcp resource failed | mirror sync | logs read

minMs

integer

Only lines that took this many milliseconds or more.

  • minimum: 0

trace

string

All of one request's lines, by the trace ID each carries and its answer's x-trace-id names.

Output

application/json

lines

requiredarray

The lines asked for, oldest first.

itemsref
Reference

#line

object

One line, as logged.

Properties

line

requiredunknown

The JSON line, as written to the log: its time, level, message and the fields the event had.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.