Cloady Docs
API ReferenceEndpointsApplications

Search a service's log history

Searches the service's logs over the range, kept for seven days, and returns the newest 300 matching lines with their level and pod, plus how many lines of each level matched per bucket. `serviceName` is a compose service.

GET
/api/workspaces/{workspaceSlug}/apps/{appSlug}/services/{serviceName}/logs/search
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
appSlug*string
serviceName*string

Query Parameters

env?string

Value in

  • "production"
  • "preview"
  • "development"
region?string
range?string

How far back to look; the answer has 30 to 96 points across it

Default"1h"

Value in

  • "15m"
  • "1h"
  • "6h"
  • "24h"
  • "7d"
q?string

Text a line must contain, ignoring case

Lengthlength <= 200
level?string

Comma-separated levels to keep (error, warn, info, debug); every level when absent

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/apps/string/services/string/logs/search"
{  "start": 0,  "step": 0,  "volume": {    "error": [      0    ],    "warn": [      0    ],    "info": [      0    ],    "debug": [      0    ]  },  "lines": [    {      "ts": 0,      "level": "error",      "pod": "string",      "line": "string"    }  ]}