Logs

Chart a saved log search over time: matching lines per bucket, or a numeric attribute aggregated per bucket.

Changed on
get/projects/{project_id}/logs/saved-searches/{saved_search_id}/series

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

project_idinteger required

Project ID

saved_search_idinteger required

Saved search ID

Query parameters

start_timestring date-time required

Window start, RFC 3339.

end_timestring date-time required

Window end, RFC 3339.

bucket_secsinteger nullable

Bucket width in seconds. Default 60.

metricstring nullable

count (default), or avg, sum, max, p50, p95, p99 or count_distinct followed by :<attribute>, e.g. p95:duration_ms.

Response

The series

method'index' | 'scan' required

How a series was computed.

partial_beforestring date-time nullable

Set when a scan stopped before the window's start: the bucket this time falls in and every older bucket have no value, since lines at or before it may not have been read.

Changes