Skip to Content
OpenPerf

Logs

List logs

GET
/api/v1/logs

Returns a cursor-paginated list of log events matching the selected projects, filters and time range.

Authorization

cookie
cookiebetter-auth.session_token<token>

Dashboard session cookie

Query Parameters

from*string
Formatdate-time
to*string
Formatdate-time
projectIds?array<string>
message?string
Lengthlength <= 500
environment?array<string>
sessionId?string
Length1 <= length <= 32
severity?array<>
traceId?string
Length1 <= length <= 32
cursor?string
limit?integer
Range1 <= value <= 500
Default100

Response Body

application/json
  1. response
data*array<>
nextCursor*string|null
Example Request
curl -X GET 'https://api.example.com/api/v1/logs?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'
Example Response
{
  "data": [
    {
      "id": "string",
      "projectId": "string",
      "timestamp": "2019-08-24T14:15:22Z",
      "observedAt": "2019-08-24T14:15:22Z",
      "severity": "trace",
      "severityNumber": 0,
      "body": "string",
      "environment": "string",
      "platform": "server",
      "traceId": "string",
      "spanId": "string",
      "scopeName": "string",
      "attributes": {
        "property1": "string",
        "property2": "string"
      },
      "resourceAttributes": {
        "property1": "string",
        "property2": "string"
      }
    }
  ],
  "nextCursor": "string"
}