Skip to Content
ReferenceAPI referenceAccess Log Debug

Get one stored raw log line

GET
/api/v1/access-log-debug/{line_id}

Returns one stored raw line by its id and createdAt, as the list returns them, with the request fields copied from the access log line it produced. Lines are stored by the time GeoMetrikks stored them, so that time is part of the line's key.

Authorization

cookiesession<token>

Session cookie authentication.

Path Parameters

line_id*integer

The line's id.

Range1 <= value <= 9223372036854776000

Query Parameters

at*string

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

Formatdate-time

Response Body

Request fulfilled, document follows

application/json
  1. response

One stored raw log line, with the fields of the access log line it produced.

The access log fields are copies made when GeoMetrikks stored the line. They are null when the line did not parse into an access log line.

accessLogId?|

The id of the access log line this line produced.

city?string|null
countryCode?string|null
countryName?string|null
createdAt*string

When GeoMetrikks stored the line, in UTC.

Formatdate-time
host?string|null
id*integer
ipAddress?string|null
isMalformed*boolean

True for a line that did not match the log format, or that looks like a probe such as a TLS handshake sent to the HTTP port.

logFormat?|

The log format that read the line. Null on lines stored before GeoMetrikks recorded it.

method?string|null
parseError?|

Why the line counts as malformed. Null for a well-formed line.

rawFields?|

The line split into its keys when it is a JSON object. Null for any other line, and for an object with key paths more than six levels deep or more than 200 flattened fields.

rawLine*string

The line as the log had it, with null bytes replaced.

statusCode?integer|null
timestamp?|

The request time from the line, in UTC.

url?string|null
userAgent?string|null
Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/access-log-debug/1?at=2019-08-24T14%3A15%3A22Z'
Example Response
{  "accessLogId": 0,  "city": "string",  "countryCode": "string",  "countryName": "string",  "createdAt": "2019-08-24T14:15:22Z",  "host": "string",  "id": 0,  "ipAddress": "string",  "isMalformed": true,  "logFormat": "string",  "method": "string",  "parseError": "string",  "rawFields": {    "fields": [      {        "group": "request_header",        "key": "string",        "storedAs": "string",        "value": "string"      }    ],    "format": "string"  },  "rawLine": "string",  "statusCode": 0,  "timestamp": "2019-08-24T14:15:22Z",  "url": "string",  "userAgent": "string"}