For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
List recent events for the Logs Explorer
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.
service:console AND @status:errormin length: 1sourcestringData source for query. Default: logs. Use events for custom events or spans for traces.
logseventsspanslogscolumnsstringComma-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).
timestamp,user.service,metadata.body,valuemin length: 1start_tsintegerStart of the time window, in milliseconds since epoch. Defaults to one hour before end_ts when omitted.
1736208000000min: 0end_tsintegerEnd of the time window, in milliseconds since epoch. Defaults to the current time when omitted.
1736294400000min: 0limitintegerMaximum number of events to return. Default: 100. Max: 1000.
100min: 0afterstringOpaque cursor from pagination.next_cursor in a previous response. Pass it back verbatim as after to fetch the next page. Cursors deeper than 100000 rows are rejected with a 400; narrow the time window with start_ts/end_ts instead of paginating deeper.
min length: 1Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobject[]requiredShow child attributes
idstringrequiredStable identifier for the event. Used internally to derive pagination cursors.
timestampstringrequiredWhen the event occurred (ISO 8601). Null when unavailable.
nullableevent_namestringrequiredName of the event, e.g. "add_to_cart".
nullableuser_idstringrequiredUser ID associated with the event, when present.
nullablevaluestringrequiredFree-form value attached to the event.
nullablesdk_typestringrequiredSDK that emitted the event, e.g. "javascript-client".
nullablesdk_versionstringrequiredSDK version string.
nullablefieldsobjectPresent when the columns query param is set. Maps each requested column id to its string value.
paginationobjectrequiredOpaque cursor pagination metadata.
Show child attributes
next_cursorstringrequirednullablehas_morebooleanrequiredcolumnsstring[]Echoes the column ids requested via the columns query param, in order.
Was this helpful?