Logs

Save a log search for a project.

Changed on
post/projects/{project_id}/logs/saved-searches

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

Request body

descriptionstring nullable
namestring required

Unique within the project.

pinnedboolean

Pinned searches sort first. Default false.

time_rangestring nullable

One of 15m, 1h, 6h, 24h, 7d, 30d. Default 1h.

Response

Saved search created

alert_countinteger required

Log alert rules counting this search. A search with alerts cannot be deleted until they are detached, so the console can say so before offering the button.

created_atstring date-time required
created_byinteger nullable
descriptionstring nullable
idinteger required
namestring required
pinnedboolean required
project_idinteger required
time_rangestring required
updated_atstring date-time required

Changes