Get Log
get_logFetch a single log by its logId: all attributes flattened in (plus a resource
object) and the message. Use after a lean logs scan when you need the body of one row.
A value longer than 4000 characters is cut and shows a marker; read the rest with path.
For custom column selection use run_sql.
Reading one long value: pass path to get one value of the log, in full or in slices. A run_sql, logs or get_log result that cut a long value shows a marker with "truncated": true, the value's full length (chars), its structure (keys) and a "more" call that reads on.
Parameters for a slice: logId; path, what to read: message, an attribute name (exception.stacktrace), or a JSON path into a value holding JSON (body.items[2].name); find, text to jump to: the slice starts just before its first match at or after offset; offset, the character position to start at (default 0); length, how many characters to return (default 20000, max 50000).
A slice returns: logId, path, chars (the value's full length), offset, text (the slice), nextOffset (null once the slice reaches the end), matches (every place find matches in the whole value, up to 20, each with its offset and the text around it; the slice starts at the first one at or after offset), and keys (the structure of the value at path, when it is JSON). To read on, call again with offset=nextOffset; to read another match, call again with offset set to that match's offset.
Returns (no path): the log object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | No | Text to jump to; the slice starts just before its first match at or after offset. | |
| path | No | Value to read in slices: message, an attribute name, or a JSON path, e.g. message, exception.stacktrace | |
| logId | Yes | ULID of the log to fetch | |
| length | No | Characters to return. Default 20000, max 50000. | |
| offset | No | Character position to start at within the value. Default 0. |