Count access log lines per hour or day
Returns how many lines each hour or day of the range holds, split by status class, under the same parameters and the same meaning as the list, so the buckets add up to its total. It needs a start: fromTimestamp or window, and without toTimestamp it runs to now. Ranges up to 7 days and 1 hour get hours, longer ones get days that start at midnight in tz. Lines go back ANALYTICS_RAW_RETENTION_DAYS days, 180 by default.
session<token>Session cookie authentication.
searchString?string|nullsearchIgnoreCase?|truefromTimestamp?|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.
methodIn?array<string>|Keep only these HTTP methods, matched exactly, such as GET. Repeat the parameter to pass more than one.
ipAddressIn?array<string>|Keep only 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.
cityIn?array<string>|Keep only these cities, by the exact name GeoIP gives, such as Oslo. Repeat the parameter to pass more than one.
countryCodeIn?array<string>|Keep only these countries, as uppercase two-letter ISO 3166-1 codes such as NO. Repeat the parameter to pass more than one.
statusIn?array<integer>|Keep only these HTTP status codes, such as 404. Repeat the parameter to pass more than one.
ipAddressNotIn?array<string>|Leave out 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.
hostIn?array<string>|Keep only these Host header values, matched exactly, such as example.com. Repeat the parameter to pass more than one.
hostNotIn?array<string>|Leave out these Host header values, matched exactly. Repeat the parameter to pass more than one. Lines without a host stay in.
serverIn?array<string>|Keep only rows recorded under these server names. Repeat the parameter to pass more than one.
serverNotIn?array<string>|Leave out rows recorded under these server names. Repeat the parameter to pass more than one. Rows without a server name stay in.
logFormatIn?array<string>|Keep only lines read with these log formats, as /facets lists them, such as nginx. Repeat the parameter to pass more than one.
asnIn?array<integer>|Keep only these autonomous system numbers, such as 13335. Repeat the parameter to pass more than one. Rows without ASN data are left out.
asnNotIn?array<integer>|Leave out these autonomous system numbers. Repeat the parameter to pass more than one. Rows without ASN data stay in.
excludeMutedIps?booleanLeave out the muted IPs. An IP include filter on the same request wins.
falsetz?|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
Lines per hour or day over a range, oldest first, with every bucket listed.
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, and 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"startDate*stringThe range's resolved start, as ISO 8601.
curl -X GET 'https://geometrikks.example.com/api/v1/access-logs/timeline?fromTimestamp=2026-11-01T00%3A00%3A00Z&toTimestamp=2026-11-02T00%3A00%3A00Z&tz=Europe%2FOslo'{ "buckets": [ { "status2xx": 0, "status3xx": 0, "status4xx": 0, "status5xx": 0, "timestamp": "string", "totalRequests": 0 } ], "endDate": "string", "granularity": "hourly", "startDate": "string"}Search the filter values by name GET
Returns the countries, cities, hosts, server names and ASNs whose name holds `q`, ignoring case and accents, busiest first, up to `limit` of each. A country also matches its two-letter code, and an ASN matches its number with or without `AS`, from the first digits. Totals cover everything the daily aggregates keep, muted IPs included, and can trail new requests by up to five minutes.
Get one access log line GET
Returns one parsed access log line by its `id` and its `timestamp`, as the list returns them. Lines are stored by time, so the timestamp is part of the line's key. Muted IPs are not hidden here.