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.

sourcestring

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

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).

start_tsinteger

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

end_tsinteger

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

limitinteger

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

afterstring

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

Response

application/json
200· Paginated event feed
messagestringrequired

A simple string explaining the result of the operation.

dataobject[]required
Show child attributes
id[]stringrequired

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

timestamp[]stringrequired

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

event_name[]stringrequired

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

user_id[]stringrequired

User ID associated with the event, when present.

value[]stringrequired

Free-form value attached to the event.

sdk_type[]stringrequired

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

sdk_version[]stringrequired

SDK version string.

fields[]object

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

paginationobjectrequired

Opaque cursor pagination metadata.

columnsstring[]

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

Was this helpful?