List recent events for the Logs Explorer

List recent events for the Logs Explorer

gethttps://statsigapi.net/console/v1/logs

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Query parameters

querystring

Logs Explorer filter syntax (same as the console filter bar), e.g. service:console AND @status:error or event_name:add_to_cart. Do not start the filter with #; use the source param to choose logs, events, or spans.

Example:service:console AND @status:error
Constraints:min length: 1
sourcestring

Data source for query. Default: logs. Use events for custom events or spans for traces.

Allowed values:logseventsspans
Example:logs
columnsstring

Comma-separated Logs Explorer column ids to include in each row's fields map (e.g. timestamp, user.service, metadata.body, custom_id:my_id_type, rule).

Example:timestamp,user.service,metadata.body,value
Constraints:min length: 1
start_tsinteger

Start of the time window, in milliseconds since epoch. Defaults to one hour before end_ts when omitted.

Example:1736208000000
Constraints:min: 0
end_tsinteger

End of the time window, in milliseconds since epoch. Defaults to the current time when omitted.

Example:1736294400000
Constraints:min: 0
limitinteger

Maximum number of events to return. Default: 100. Max: 1000.

Example:100
Constraints:min: 0
afterstring

Opaque cursor from pagination.next_cursor in a previous response. Pass it back verbatim as after to fetch the next page.

Constraints:min length: 1

Response

application/json
200· Paginated event feed
messagestringrequired

A simple string explaining the result of the operation.

dataobject[]required
Show child attributes
idstringrequired

Stable identifier for the event. Used internally to derive pagination cursors.

timestampstringrequired

When the event occurred (ISO 8601). Null when unavailable.

Constraints:nullable
event_namestringrequired

Name of the event, e.g. "add_to_cart".

Constraints:nullable
user_idstringrequired

User ID associated with the event, when present.

Constraints:nullable
valuestringrequired

Free-form value attached to the event.

Constraints:nullable
sdk_typestringrequired

SDK that emitted the event, e.g. "javascript-client".

Constraints:nullable
sdk_versionstringrequired

SDK version string.

Constraints:nullable
fieldsobject

Present when the columns query param is set. Maps each requested column id to its string value.

paginationobjectrequired

Opaque cursor pagination metadata.

Show child attributes
next_cursorstringrequired
Constraints:nullable
has_morebooleanrequired
columnsstring[]

Echoes the column ids requested via the columns query param, in order.

Was this helpful?