Skip to Content
ReferenceAPI referenceAnalytics

Get the log ingestion counters

GET
/api/v1/stats

Returns the line and record counters of this process, and the state of each Loki query in LOKI_QUERIES. The counters start at zero when the process starts. Without an ingestion service, as with LOGPARSER_ENABLED=false, every counter is 0, isRunning is false and lokiSources is empty.

Authorization

cookiesession<token>

Session cookie authentication.

Response Body

Request fulfilled, document follows

application/json
  1. response

The log ingestion counters of this process. They start at zero when the process starts.

isRunning*boolean

False when LOGPARSER_ENABLED is false, or when ingestion failed to start or stopped.

lokiSources?array<>
totalIgnoredLines*integer

Log lines GeoMetrikks dropped because the client IP is in LOGPARSER_IGNORE_IPS.

totalParsedLines*integer

Log lines that parsed, across all sources.

totalPendingRecords*integer

Parsed records held in memory until the next database write.

totalProcessed*integer

Parsed records that ingestion has passed to a database write.

totalSkippedLines*integer

Log lines that did not match the log format.

Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/stats'
Example Response200
{  "isRunning": true,  "lokiSources": [    {      "available": true,      "label": "string",      "logFormat": "string",      "parsedLines": 0,      "query": "string",      "reason": "string",      "server": "string"    }  ],  "totalIgnoredLines": 0,  "totalParsedLines": 0,  "totalPendingRecords": 0,  "totalProcessed": 0,  "totalSkippedLines": 0}