Guest runtime log tail, optionally filtered to one realm
const url = 'http://localhost:11044/api/v1/admin/realms/observability/logs?limit=200';const options = {method: 'GET', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:11044/api/v1/admin/realms/observability/logs?limit=200' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Guest log, stdout and stderr lines from the newest runs the Shinar host recorded, already redacted by the host. A line is attributed to the realm whose program ran; a run no loaded realm’s program matches comes back with realm null rather than a guess. captureEnabled is false when this process has no Shinar host to read runs from, so an empty list is not misread as a quiet realm.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Restrict to one realm’s entries. Omit for every realm.
How many lines, newest last. Clamped to the tail’s own size.
Responses
Section titled “Responses”The current guest log tail
The newest guest log lines from the process-wide log ring buffer, answered by GET /admin/realms/observability/logs
object
How many events the ring buffer holds across the whole process, so no request can return more than this
False when this deployment captures no log lines at all, because diagnostics are off; entries is then empty whatever the realms did
The matching lines, oldest first and newest last, at most the requested limit
One log line a realm’s guest code wrote during a dispatch
object
Id of the dispatch the line was logged in, which groups the lines of one handler run. Null when not recorded
The log level: TRACE, DEBUG, INFO, WARN or ERROR
The log message as written, except that a first-run setup token in it is redacted
The realm that logged it. Null when the code path never recorded which realm it was running for
When the line was logged, in epoch milliseconds
True when a realm was named, nothing matched it, and the buffer did hold other guest lines
Example generated
{ "bufferSize": 1, "captureEnabled": true, "entries": [ { "dispatchId": "example", "level": "example", "message": "example", "realm": "example", "timestamp": 1 } ], "filteredOut": true}
