LogEvent
A LogEvent is one event your website or app logged: an error with its stack trace, a slow page,
a user action. Besides the message and severity, it records where it happened: the app and its version, the
session, the device, the network and the page or screen.
Log events are created in batches of up to 1000 with POST /log, and can be listed, searched and read, but never
changed or deleted. The frontend logging guide shows how to send them.
JSON Schema ยท ABAC object type LogEvent
Fields
Required: schemaVersion, app, environment, platform, sentAt, session, timestamp, severity, message.
| Field |
Type |
Required |
Description |
at_type |
LogEvent |
|
JSON-LD @type, the object's type name. |
at_id |
URL |
|
The object's ObjectsGrid URL, https://apis.objectsgrid.com/<path>/<id>, its JSON-LD @id: what References to it hold. Assigned by ObjectsGrid. |
id |
string |
|
The object's id. Assigned by ObjectsGrid when the object is created. |
identifier |
string |
|
The object's id, as Schema.org identifier. Assigned by ObjectsGrid. |
url |
URL |
|
The object's own URL, https://apis.objectsgrid.com/<path>/<id>. Assigned by ObjectsGrid. |
schemaVersion |
string |
Yes |
Schema version identifier |
app |
AppInfo |
Yes |
|
environment |
string |
Yes |
Environment name (e.g., production, staging, development) |
platform |
string |
Yes |
Platform identifier |
baseUrl |
URL |
|
Base URL of the application |
sentAt |
date-time |
Yes |
When the record was sent |
session |
SessionInfo |
Yes |
|
auth |
AuthInfo |
|
|
client |
ClientInfo |
|
|
device |
DeviceInfo |
|
|
network |
NetworkInfo |
|
|
geo |
Geo |
|
|
web |
WebInfo |
|
|
mobile |
MobileInfo |
|
|
extensions |
Extensions |
|
Record-level extensions (namespaced) |
timestamp |
date-time |
Yes |
When the log entry was created |
severity |
string |
Yes |
Log severity level |
message |
string |
Yes |
Log message |
eventType |
string |
|
Type of event |
title |
string |
|
Event title |
error |
ErrorObject |
|
|
stackTrace |
string |
|
Stack trace if applicable |
ui |
UIInfo |
|
|
http |
HTTPInfo |
|
|
context |
object |
|
Free-form per-entry contextual data |
performance |
object |
|
Performance metrics |
entryExtensions |
Extensions |
|
Entry-level extensions (namespaced) |
infoObject |
string |
|
Optional informational object as a string |
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 []. |
meta |
ObjectMeta |
|
Read-only metadata: version, type, creation and last update. |
AppInfo
| Field |
Type |
Required |
Description |
name |
string |
Yes |
Application name |
version |
string |
Yes |
Application version |
build |
string |
|
Build identifier |
releaseId |
string |
|
Release identifier |
AuthInfo
| Field |
Type |
Required |
Description |
method |
string |
|
Authentication method |
state |
string |
|
Authentication state |
userId |
string |
|
User identifier |
ClientInfo
| Field |
Type |
Required |
Description |
locale |
string |
|
Client locale (e.g., en-US) |
timezone |
string |
|
Client timezone |
userAgent |
string |
|
User agent string |
sdk |
SDKInfo |
|
|
DeviceInfo
| Field |
Type |
Required |
Description |
type |
string |
|
Device type |
manufacturer |
string |
|
Device manufacturer |
model |
string |
|
Device model |
osName |
string |
|
Operating system name |
osVersion |
string |
|
Operating system version |
DisplayInfo
| Field |
Type |
Required |
Description |
width |
integer |
|
Display width in pixels |
height |
integer |
|
Display height in pixels |
pixelRatio |
number |
|
Device pixel ratio |
orientation |
string |
|
Screen orientation |
ErrorObject
| Field |
Type |
Required |
Description |
type |
string |
|
Error type or class name |
code |
string |
|
Error code |
message |
string |
|
Error message |
unhandled |
boolean |
|
Whether error was unhandled |
fatal |
boolean |
|
Whether error was fatal |
stack |
string |
|
Stack trace |
cause |
ErrorObject |
|
Underlying cause of the error |
Geo
| Field |
Type |
Required |
Description |
latitude |
number |
|
Latitude coordinate |
longitude |
number |
|
Longitude coordinate |
accuracyMeters |
number |
|
Location accuracy in meters |
source |
string |
|
Location source |
capturedAt |
date-time |
|
When location was captured |
HTTPInfo
| Field |
Type |
Required |
Description |
method |
string |
|
HTTP method |
status |
integer |
|
HTTP status code |
urlTemplate |
string |
|
URL template (with path parameters) |
durationMs |
integer |
|
Request duration in milliseconds |
retryCount |
integer |
|
Number of retries |
MobileInfo
| Field |
Type |
Required |
Description |
appState |
string |
|
Application state |
screenName |
string |
|
Current screen name |
permissions |
object |
|
Permission states |
NetworkInfo
| Field |
Type |
Required |
Description |
type |
string |
|
Network type |
effectiveType |
string |
|
Effective network type |
carrier |
string |
|
Network carrier name |
roaming |
boolean |
|
Whether device is roaming |
metered |
boolean |
|
Whether connection is metered |
SDKInfo
| Field |
Type |
Required |
Description |
name |
string |
|
SDK name |
version |
string |
|
SDK version |
SessionInfo
| Field |
Type |
Required |
Description |
sessionId |
string |
Yes |
Unique session identifier |
installId |
string |
|
Installation identifier |
correlationId |
string |
|
Correlation identifier for tracking across services |
requestId |
string |
|
Request identifier |
traceId |
string |
|
Distributed trace identifier |
spanId |
string |
|
Span identifier within a trace |
UIInfo
| Field |
Type |
Required |
Description |
screenName |
string |
|
Screen or page name |
component |
string |
|
UI component identifier |
route |
string |
|
Route or navigation path |
display |
DisplayInfo |
|
|
ViewportInfo
| Field |
Type |
Required |
Description |
width |
integer |
|
Viewport width in pixels |
height |
integer |
|
Viewport height in pixels |
WebInfo
| Field |
Type |
Required |
Description |
browserName |
string |
|
Browser name |
browserVersion |
string |
|
Browser version |
pageUrl |
URL |
|
Current page URL |
referrer |
URL |
|
Referrer URL |
viewport |
ViewportInfo |
|
|
userAgent |
string |
|
User agent string |
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 |
| Create a batch of log events |
POST /log |
| List and search |
GET /log |
| Retrieve |
GET /log/{id} |
LogEvent objects have no JSON-LD document: asked for one (Accept: application/ld+json), GET answers 406.
The OpenAPI contract, with every parameter and response: Logs (JSON).
GraphQL
Endpoint POST https://apis.objectsgrid.com/graphql; see the GraphQL guide.
| Operation |
Field |
| Query |
logEvents(where: LogEventWhereInput, orderBy: [LogEventOrderByInput!], first: Int, after: String): LogEventConnection! |
| Query |
logEventsGroupBy(by: [LogEventGroupByField!]!, where: LogEventWhereInput, having: LogEventHavingInput, orderBy: [LogEventGroupByOrderByInput!], first: Int, after: String): LogEventGroupByConnection! |