---
title: "Chart a saved log search over time: matching lines per bucket, or a numeric attribute aggregated per bucket."
method: GET
path: "/projects/{project_id}/logs/saved-searches/{saved_search_id}/series"
tags: ["Logs"]
---

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

`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)
- URL: `/api/projects/{project_id}/logs/saved-searches/{saved_search_id}/series`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `saved_search_id` integer, required

## Query parameters

- `start_time` string, date-time, required
- `end_time` string, date-time, required
- `bucket_secs` integer, nullable
- `metric` string, nullable

## Response `200`

The series

- LogSeries: A bucketed log series.
  - `method` 'index' | 'scan', required: How a series was computed.
  - `partial_before` string, 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.
  - `points` LogSeriesPoint[], required
    - `ts` string, date-time, required: Bucket start.
    - `value` number, double, nullable: `None` when nothing was counted for the bucket (outside a capped scan) or no line contributed to a numeric aggregate.

## Other responses

- `400`: Invalid window, bucket or metric
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Saved search not found
- `500`: Internal server error
- `503`: A numeric series needs the line index, which is unavailable

## Changes

- **2026-11-21** `d57a37c13a27`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/logs/saved-searches/:saved_search_id/series/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
