Skip to content
v0.5.1GitHub

Using

Reads the last N lines of a log file.

applies to v0.5.1
GET
/store-api/logs
curl --request GET \
--url https://example.com/store-api/logs \
--header 'Authorization: Bearer <token>'
lines
integer

Tail line count from file end (default 100, capped at 1000). 0 is rejected.

q
string

Case-sensitive substring filter; only matching lines count toward lines.

file
string

Name of a file listed by GET /logs/files. Defaults to the newest luradb.log* file.

Tail of the selected log file

Media typeapplication/json
object
file
required

Name of the file actually read, without a path.

string
format
required

Mirrors log.format (“json” | “text”) — the client parses lines itself.

string
lines
required

Chronologically ascending (oldest first), like tail.

Array<string>
truncated
required

true iff the scan budget was exhausted before lines matches and before file start.

boolean

Example generated

{
"file": "example",
"format": "example",
"lines": [
"example"
],
"truncated": true
}

Lines = 0, or invalid file name

Media typetext/plain
string

File does not exist

Media typetext/plain
string

Log directory unreadable, no luradb.log* file found, or read failed

Media typetext/plain
string

Log HTTP access is disabled

Media typetext/plain
string