Skip to Content
OpenPerf

Logs

Get log time series

GET
/api/v1/logs/series

Returns bucketed log volume over time by severity level.

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
buckets?integer
Range10 <= value <= 400
Default60

Response Body

application/json
  1. response
bucketSeconds*integer
buckets*array<>
lastBucketPartial*boolean
Example Request
curl -X GET 'https://api.example.com/api/v1/logs/series?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'
Example Response
{
  "bucketSeconds": 0,
  "buckets": [
    {
      "timestamp": "2019-08-24T14:15:22Z",
      "trace": 0,
      "debug": 0,
      "info": 0,
      "warn": 0,
      "error": 0,
      "fatal": 0
    }
  ],
  "lastBucketPartial": true
}