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

Get the error line behind an access log line

GET
/api/v1/access-logs/{log_id}/error-match

Returns the proxy error line that the access log line with this id and timestamp probably wrote, or null. A line matches when it has the same server, client address, method and URL, and the same host when both have one. Its time falls between 1 second before the request started and 1 second after the access time, where the request started its request time before the access time, counting at most 300 seconds; a missing or negative request time counts as 0. An IPv4 client also matches its IPv4-mapped IPv6 form, and hosts compare without ASCII case, port or trailing dot. The closest line wins, then the most severe, then the earliest, then the lowest id. Muted IPs are not hidden from the match. problemLines counts the problem's lines from fromTimestamp to toTimestamp, or every retained line without them, and excludeMutedIps leaves the muted clients' lines out of it.

Authorization

cookiesession<token>

Session cookie authentication.

Path Parameters

log_id*integer

The access log line's id.

Range1 <= value <= 9223372036854776000

Query Parameters

excludeMutedIps?boolean

Leave the muted clients' lines out of the problem's line count. The line or match itself still shows.

Defaultfalse
at*string

The access log line's timestamp, as ISO 8601. A time without a timezone is UTC.

Formatdate-time
fromTimestamp?|

Count the problem's lines from this time, as ISO 8601 with a timezone.

toTimestamp?|

Count the problem's lines up to this time, as ISO 8601 with a timezone.

Response Body

Request fulfilled, document follows

application/json
  1. response

The probable error line behind an access log request.

match*|

The probable error line with its problem. Null when none matches.

Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/access-logs/1/error-match?at=2019-08-24T14%3A15%3A22Z'
Example Response
{  "match": {    "level": "string",    "line": {      "autonomousSystemNumber": 0,      "autonomousSystemOrganization": "string",      "city": "string",      "clientIp": "string",      "connection": 0,      "context": "string",      "countryCode": "string",      "countryName": "string",      "host": "string",      "httpVersion": "string",      "id": 0,      "level": "string",      "logFormat": "string",      "message": "string",      "method": "string",      "pid": 0,      "problemKey": "string",      "rawLine": "string",      "referrer": "string",      "server": "string",      "serverName": "string",      "sourceTimezone": "string",      "tid": 0,      "timestamp": "2019-08-24T14:15:22Z",      "upstream": "string",      "url": "string"    },    "problemKey": "string",    "problemLines": 0,    "signature": "string"  }}