Get one error log problem
Returns one problem under the same scope as the problem list: its counts, lines per hour or day, top paths, clients, hosts, upstreams and servers (10 each), its latest line in scope, and the probable access log requests behind up to 50 of its latest lines, counting only requests in the range. It needs a start: fromTimestamp or window. A window ends at the time of the request. Without toTimestamp or window the range also ends then, and lines stamped later still count. A problem with no lines in scope still answers, with zero counts and empty lists.
session<token>Session cookie authentication.
key*stringThe problem's key.
length <= 32fromTimestamp?|Keep only lines logged at or after this time, as ISO 8601 with a timezone.
toTimestamp?|Keep only lines logged at or before this time, as ISO 8601 with a timezone.
window?|A rolling window ending now, such as 15m, 24h or 7d, up to 365 days. Use positive whole minutes, hours or days. Cannot be combined with explicit time bounds.
excludeMutedIps?booleanLeave out the muted IPs. An IP include filter on the same request wins.
falseproblemKeyIn?array<string>|Keep only lines of these problems, by problemKey. Repeat the parameter to pass more than one.
levelIn?array<string>|Keep only these nginx levels, such as error or crit. Repeat the parameter to pass more than one.
hostIn?array<string>|Keep only lines whose host: is one of these, matched exactly. Repeat the parameter to pass more than one. Lines without a host are left out.
serverIn?array<string>|Keep only rows recorded under these server names. Repeat the parameter to pass more than one.
clientIpIn?array<string>|Keep only lines from these client IPs or ranges. Repeat the parameter to pass more than one. Each value is an address or a CIDR range such as 203.0.113.0/24. A range with host bits set, or a value that is neither, gets a 400. Lines without a client are left out.
clientIpNotIn?array<string>|Leave out lines from these client IPs or ranges. Repeat the parameter to pass more than one. Each value is an address or a CIDR range such as 203.0.113.0/24. A range with host bits set, or a value that is neither, gets a 400. Lines without a client stay in.
upstreamIn?array<string>|Keep only lines whose upstream origin is one of these, such as http://127.0.0.1:8051. Repeat the parameter to pass more than one. Lines without an upstream are left out.
searchString?|Keep only lines whose message, URL or upstream holds this text, ignoring case. % matches any run of characters and _ any one character.
tz?|An IANA timezone such as Europe/Oslo, where daily buckets start at midnight. Hourly buckets ignore it. An unknown zone gets a 400. Defaults to UTC.
Request fulfilled, document follows
application/json- response
One problem under the list's scope, for its dock.
accessMatches*array<>Probable access log requests behind up to 50 of the latest lines in scope, by status, most requests first.
buckets*array<string>The bucket starts counts follows, oldest first, as ISO 8601 in UTC.
clients*integerDistinct client addresses among those lines.
counts*array<integer>The problem's lines per bucket, one for each of buckets.
firstSeen*stringWhen the problem was first seen, in UTC. Retention never removes it.
date-timefirstSeenInScope*|Its earliest line in scope, in UTC. Null without lines in scope.
granularity*stringhourly up to 7 days and 1 hour, daily above, in the tz zone.
"hourly""daily"hosts*array<>Up to 10 hosts with the most lines, most first.
isNew*booleanFirst seen in the last 24 hours.
key*stringThe problem's key.
lastSeenInScope*|Its latest line in scope, in UTC. Null without lines in scope.
latestRawLine*|The latest line in scope as read. Null without lines in scope.
level*stringThe problem's nginx level.
lines*integerThe problem's lines in scope.
logFormat*stringThe error log format its lines were read with.
servers*array<>Up to 10 GeoMetrikks server names with the most lines, most first.
signature*stringThe masked message every line of the problem shares.
topClients*array<>Up to 10 client addresses with the most lines, most first.
topPaths*array<>Up to 10 request paths with the most lines, most first.
upstreams*array<>Up to 10 upstream origins with the most lines, most first.
curl -X GET 'https://geometrikks.example.com/api/v1/error-logs/problems/string?fromTimestamp=2026-11-01T00%3A00%3A00Z&toTimestamp=2026-11-02T00%3A00%3A00Z&tz=Europe%2FOslo'{ "accessMatches": [ { "count": 0, "hosts": [ "string" ], "servers": [ "string" ], "status": 0 } ], "buckets": [ "string" ], "clients": 0, "counts": [ 0 ], "firstSeen": "2019-08-24T14:15:22Z", "firstSeenInScope": "2019-08-24T14:15:22Z", "granularity": "hourly", "hosts": [ { "lines": 0, "value": "string" } ], "isNew": true, "key": "string", "lastSeenInScope": "2019-08-24T14:15:22Z", "latestRawLine": "string", "level": "string", "lines": 0, "logFormat": "string", "servers": [ { "lines": 0, "value": "string" } ], "signature": "string", "topClients": [ { "city": "string", "countryCode": "string", "countryName": "string", "ip": "string", "lines": 0 } ], "topPaths": [ { "lines": 0, "value": "string" } ], "upstreams": [ { "lines": 0, "value": "string" } ]}List error log problems GET
Returns the problems that have lines in scope, one page, with their line and client counts, top hosts and upstreams, and lines per hour or day for a sparkline. Takes the same filters as the list. It needs a start: `fromTimestamp` or `window`. A `window` ends at the time of the request. Without `toTimestamp` or `window` the range also ends then, and lines stamped later still count. `orderBy=lastSeen` puts problems first seen in the last 24 hours first, then the latest line. `orderBy=lines` puts the most lines first. Ties go by key.
Get the error logs status GET
Returns whether this instance reads error logs, whether any error line is stored, and how many problems are new: first seen in the last 24 hours, with a line in the last 24 hours that muted IPs do not hide.