Count error log lines per hour or day
Returns how many lines each hour or day of the range holds, split by nginx level, under the same filters as the list, so the buckets add up to its total. 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. Ranges up to 7 days and 1 hour get hours, longer ones get days that start at midnight in tz. markers lists the problems first seen inside the range that have lines in scope, the 20 with the most lines.
session<token>Session cookie authentication.
fromTimestamp?|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
Error lines per hour or day over a range, oldest first, with markers for new problems.
buckets*array<>Every bucket from the one holding the start through the last one that has begun, empty ones with zeros. When the range starts before ANALYTICS_RAW_RETENTION_DAYS ago, they start at that cutoff, or earlier at the first bucket with lines that retention has not removed yet.
endDate*stringThe range's resolved end, inclusive, as ISO 8601. Without toTimestamp it is the time of the count. Without window either, lines stamped later still count, as on the list.
granularity*stringhourly up to 7 days and 1 hour, daily above, in the tz zone.
"hourly""daily"markers*array<>Problems first seen inside the range that have lines in scope, the 20 with the most lines, most lines first.
startDate*stringThe range's resolved start, as ISO 8601.
curl -X GET 'https://geometrikks.example.com/api/v1/error-logs/timeline?fromTimestamp=2026-11-01T00%3A00%3A00Z&toTimestamp=2026-11-02T00%3A00%3A00Z&tz=Europe%2FOslo'{ "buckets": [ { "alert": 0, "crit": 0, "debug": 0, "emerg": 0, "error": 0, "info": 0, "notice": 0, "timestamp": "string", "total": 0, "warn": 0 } ], "endDate": "string", "granularity": "hourly", "markers": [ { "lines": 0, "problemKey": "string", "signature": "string", "timestamp": "string" } ], "startDate": "string"}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.
Get one error log line GET
Returns one error line by its `id` and its `timestamp`, as the list returns them, with its problem and the access log request that probably wrote it. The line shows even when its client is muted. The problem's line count under a range and filters comes from `GET /api/v1/error-logs/problems/{key}`.