List recent events for the Logs Explorer
https://statsigapi.net/console/v1/logsAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Query parameters
querystringLogs 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.
sourcestringData source for query. Default: logs. Use events for custom events or spans for traces.
columnsstringComma-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_tsintegerStart of the time window, in milliseconds since epoch. Defaults to one hour before end_ts when omitted.
end_tsintegerEnd of the time window, in milliseconds since epoch. Defaults to the current time when omitted.
limitintegerMaximum number of events to return. Default: 100. Max: 1000.
afterstringOpaque cursor from pagination.next_cursor in a previous response. Pass it back verbatim as after to fetch the next page.
Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobject[]requiredShow child attributes
id[]stringrequiredStable identifier for the event. Used internally to derive pagination cursors.
timestamp[]stringrequiredWhen the event occurred (ISO 8601). Null when unavailable.
event_name[]stringrequiredName of the event, e.g. "add_to_cart".
user_id[]stringrequiredUser ID associated with the event, when present.
value[]stringrequiredFree-form value attached to the event.
sdk_type[]stringrequiredSDK that emitted the event, e.g. "javascript-client".
sdk_version[]stringrequiredSDK version string.
fields[]objectPresent when the columns query param is set. Maps each requested column id to its string value.
paginationobjectrequiredOpaque cursor pagination metadata.
columnsstring[]Echoes the column ids requested via the columns query param, in order.
Was this helpful?