Skip to Content
ReferenceAPI referenceError Logs
Next: these pages describe unreleased changes on the develop branch. Read the docs for the current release

List the filter values in the error logs

GET
/api/v1/error-logs/facets

Returns the levels, hosts, server names and upstreams that have error lines in the range, to fill the filter bar. 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.

Authorization

cookiesession<token>

Session cookie authentication.

Query Parameters

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.

Response Body

Request fulfilled, document follows

application/json
  1. response

The filter values that have error lines in the range.

hosts*array<string>

host: values, sorted.

levels*array<string>

nginx levels, most severe first.

servers*array<string>

GeoMetrikks server names, sorted.

upstreams*array<string>

Upstream origins, sorted.

Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/error-logs/facets?fromTimestamp=2026-11-01T00%3A00%3A00Z&toTimestamp=2026-11-02T00%3A00%3A00Z'
Example Response
{  "hosts": [    "string"  ],  "levels": [    "string"  ],  "servers": [    "string"  ],  "upstreams": [    "string"  ]}