Skip to Content
ReferenceAPI referenceLogs

Get the newest app or login log records

GET
/api/v1/logs/tail

Returns the last lines lines of geometrikks.log or login.log as records, oldest first. It skips lines that do not parse, so fewer records can come back. App log records keep every key the event carried, so expect more keys than the schema lists.

Authorization

cookiesession<token>

Session cookie authentication.

Query Parameters

lines?integer

How many lines to read from the end of the log, from 1 to 2000. The server clamps a value outside that range to the nearest end. Defaults to 500.

Default500
source?string

app reads geometrikks.log, login reads login.log. Defaults to app.

Default"app"
Value in"app""login"

Response Body

Request fulfilled, document follows

application/json
  1. response

The newest records of one log, oldest first.

records*array<>
Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/logs/tail'
Example Response
{  "records": [    {      "event": "string",      "exception": "string",      "ip": "string",      "key": "string",      "level": "string",      "logger": "string",      "timestamp": "string",      "user": "string"    }  ]}