AccessLogEntry¶
ObjectsGrid writes an AccessLogEntry for every request to your Organization Account: who called
(principalID), what (httpMethod, requestURL, operationID), from where (remoteAddr, userAgent), when,
the response code and time, which objects access was granted or denied to, and the version of the ABAC policy
that decided.
Access log entries are security records. They are written by the platform only, and you can only list and search
them, with GET /accesslogentries and an Elasticsearch query, as far as your ABAC policy allows. To find the entry
of one request, filter on the correlationID that the request's response carried in X-ObjectsGrid-CorrelationID:
curl -G https://apis.objectsgrid.com/accesslogentries \
-H 'X-ObjectsGrid-AccessPoint: EU' \
-H "Authorization: Bearer $TOKEN" \
--data-urlencode 'query={"query":{"match_phrase":{"correlationID":"<correlation id>"}}}'
How long entries are kept: 18 months (548 days) from the request, then they are deleted, unless ObjectsGrid has to keep them longer to establish or defend a legal claim. An entry holds no request or response body, and of the query string only the parameter names, never their values.
Fields¶
| Field | Type | Required | Description |
|---|---|---|---|
organizationAccountID |
string | ||
serviceID |
string | ||
serviceVersion |
string | ||
operationID |
string | ||
correlationID |
string | ||
principalID |
string | ||
sessionID |
string | ||
remoteAddr |
string | ||
userAgent |
string | ||
requestDateTime |
date-time | ||
accessPoint |
string | ||
environment |
string | ||
requestURL |
string | ||
httpMethod |
string | ||
responseDateTime |
date-time | ||
responseCode |
integer | ||
billableRequests |
integer | How many requests this one counted against the spending cap and the month's usage: 1 for most, one per object created for a batch create, 0 when free (a response of 500 or above, 401, 403 or 429, a token request, or a GraphQL request's further calls) | |
responseTimeNanoseconds |
integer | ||
objectsAccessGranted |
list of ObjectInfo | ||
objectsAccessDenied |
list of ObjectInfo | ||
abacPolicy |
ObjectInfo | The ABAC policy the request's access decisions used, with its objectVersion; absent when no policy was evaluated, as for administrators |
ObjectInfo¶
| Field | Type | Required | Description |
|---|---|---|---|
objectID |
string | ||
objectType |
string | ||
namespace |
string | ||
objectVersion |
integer | The version of the object accessed: its meta.objectVersion | |
deleted |
boolean | ||
tags |
list of Tag | Tags your ABAC policy decides on. Created empty when not sent, kept by a PUT that leaves them out, cleared by null or []. |
|
redactedFields |
list of string | The fields of the object the request did not return because the ABAC policy hides them from the subject |
REST API¶
Base URL https://apis.objectsgrid.com. Every request sends the X-ObjectsGrid-AccessPoint and Authorization: Bearer <access token> headers; see the REST API guide.
| Operation | Request |
|---|---|
| List and search | GET /accesslogentries |
The OpenAPI contract, with every parameter and response: AccessLogEntries (JSON).