Get the log ingestion counters
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.
session<token>Session cookie authentication.
Request fulfilled, document follows
application/json- response
The log ingestion counters of this process. They start at zero when the process starts.
isRunning*booleanFalse when LOGPARSER_ENABLED is false, or when ingestion failed to start or stopped.
lokiSources?array<>totalIgnoredLines*integerLog lines GeoMetrikks dropped because the client IP is in LOGPARSER_IGNORE_IPS.
totalParsedLines*integerLog lines that parsed, across all sources.
totalPendingRecords*integerParsed records held in memory until the next database write.
totalProcessed*integerParsed records that ingestion has passed to a database write.
totalSkippedLines*integerLog lines that did not match the log format.
curl -X GET 'https://geometrikks.example.com/api/v1/stats'{ "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}List the most common user agents GET
Returns user agent strings ordered by hits. Lines without a user agent are left out. A country, city, IP or ASN filter makes it read the raw access log rows, which go back only ANALYTICS_RAW_RETENTION_DAYS days, 180 by default.
List API keys GET
Returns every key, newest first, with its scope, expiry, and when and from which IP it was last used. The key itself never appears after creation. API keys get a 403 here; use a browser session.