Search the project's stored logs: app output (runtime), build logs (build) or requests (http), newest first
Lines are kept as long as the plan says (Free 1 day, Pro 7 days, Business 30 days). One call reads a bounded part of the range; pass nextCursor to go on with older lines. Secret environment values are redacted in app and build lines; request lines hold no client address or query string. Needs logs:read.
Request
- Base URL: https://hostingsurge.com/api/v1
- URL: https://hostingsurge.com/api/v1/projects/{projectId}/logs/search
- Auth: one of:
- HTTP bearer
- API key in cookie __Host-hs_session
Path parameters
Query parameters
runtime: the app's own output; build: build logs of deployments; http: requests the platform proxy served for the project's hostnames
oldest line to include; default: 24 hours ago, never before the plan keeps lines
newest line to include; default: now
text to find (case does not matter); several words must all appear
errors: error lines only (stderr/error words; 5xx for requests)
requests only: the status class
build logs of one deployment
nextCursor of the previous page: continue with older lines
Response
Lines
Changes
No recorded changes to this operation across all 1 revision of this API.