The Log Management endpoints let you discover, inspect, search, and clean up the execution logs produced by processes running inside a container. Use these routes to enumerate log files, tail a file in real time, pull a slice of a log into memory, run a multi-file search, or purge old log data. All routes are scoped to a specific container via the host template.
GET /api/v1/exec/logs/list
Returns the available log files in the container. The response shape varies depending on whether type is supplied: with type the response includes a directory field; without it, the response returns a flat logs array.
Name In Type Required Description typequery string No Type query parameter limitquery string No Limit query parameter
curl -X GET " https://proj123-cnt456-exec-1.eu-west.containers.hoody.icu/api/v1/exec/logs/list?type=application&limit=50 "
await client . exec . logs . list ({ type : " application " , limit : " 50 " });
" directory " : " /var/log/hoody/application " ,
" file " : " app-2025-01-15.log " ,
" modified " : " 2025-01-15T18:42:11Z "
" file " : " app-2025-01-16.log " ,
" modified " : " 2025-01-16T09:15:02Z "
" error " : " Invalid parameter format " ,
" code " : " VALIDATION_ERROR " ,
" timestamp " : " 2025-01-16T10:32:14.812Z "
Error Code Title Description Resolution VALIDATION_ERRORInvalid input Request parameters failed validation Check parameter format and requirements
" error " : " Internal server error " ,
" timestamp " : " 2025-01-16T10:32:14.812Z "
GET /api/v1/exec/logs/stream
Streams the contents of a specific log file. Set follow=true to keep the connection open and receive new lines as they are written.
Name In Type Required Description filequery string Yes File query parameter followquery string No Follow query parameter
curl -X GET " https://proj123-cnt456-exec-1.eu-west.containers.hoody.icu/api/v1/exec/logs/stream?file=app-2025-01-16.log&follow=true "
await client . exec . logs . stream ({ file : " app-2025-01-16.log " , follow : " true " });
" error " : " Invalid parameter format " ,
" code " : " VALIDATION_ERROR " ,
" timestamp " : " 2025-01-16T10:32:14.812Z "
Error Code Title Description Resolution VALIDATION_ERRORInvalid input Request parameters failed validation Check parameter format and requirements
" error " : " Resource not found " ,
" timestamp " : " 2025-01-16T10:32:14.812Z "
Error Code Title Description Resolution NOT_FOUNDResource not found The requested resource does not exist Verify the resource identifier
" error " : " Internal server error " ,
" timestamp " : " 2025-01-16T10:32:14.812Z "
POST /api/v1/exec/logs/read
Reads a fixed window of lines from a log file. You can either pass file (a path inside the container) or executionId to target the log of a specific past execution. The response includes both the file metadata and the returned slice of lines.
Name Type Required Default Description filestring No — File executionIdstring No — Execution Id linesinteger No 100Lines tailboolean No trueTail searchstring No — Search
curl -X POST " https://proj123-cnt456-exec-1.eu-west.containers.hoody.icu/api/v1/exec/logs/read " \
-H " Content-Type: application/json " \
"file": "app-2025-01-16.log",
await client . exec . logs . read ({
file : " app-2025-01-16.log " ,
" file " : " app-2025-01-16.log " ,
" 2025-01-16T10:31:01Z ERROR connection refused (db primary) " ,
" 2025-01-16T10:31:02Z ERROR retry 1/3 " ,
" 2025-01-16T10:31:05Z ERROR connection refused (db primary) "
" modified " : " 2025-01-16T10:30:14Z "
" error " : " Invalid parameter format " ,
" code " : " VALIDATION_ERROR " ,
" timestamp " : " 2025-01-16T10:32:14.812Z "
Error Code Title Description Resolution VALIDATION_ERRORInvalid input Request parameters failed validation Check parameter format and requirements
" error " : " Resource not found " ,
" timestamp " : " 2025-01-16T10:32:14.812Z "
Error Code Title Description Resolution NOT_FOUNDResource not found The requested resource does not exist Verify the resource identifier
" error " : " Internal server error " ,
" timestamp " : " 2025-01-16T10:32:14.812Z "
POST /api/v1/exec/logs/search
Searches one or more log files for a literal substring or a regular expression. Use query for substring matching or regex for pattern matching. The response reports how many files were scanned and the total number of matches found.
Name Type Required Default Description querystring No — Query regexstring No — Regex filesarray No — Files limitinteger No 1000Limit caseSensitiveboolean No falseCase Sensitive
curl -X POST " https://proj123-cnt456-exec-1.eu-west.containers.hoody.icu/api/v1/exec/logs/search " \
-H " Content-Type: application/json " \
"files": ["app-2025-01-15.log", "app-2025-01-16.log"],
await client . exec . logs . search ({
files : [ " app-2025-01-15.log " , " app-2025-01-16.log " ],
" searchType " : " substring " ,
" file " : " app-2025-01-16.log " ,
" line " : " 2025-01-16T09:02:11Z container OOMKilled (exit 137) "
" error " : " Invalid parameter format " ,
" code " : " VALIDATION_ERROR " ,
" timestamp " : " 2025-01-16T10:32:14.812Z "
Error Code Title Description Resolution VALIDATION_ERRORInvalid input Request parameters failed validation Check parameter format and requirements
" error " : " Internal server error " ,
" timestamp " : " 2025-01-16T10:32:14.812Z "
DELETE /api/v1/exec/logs/clear
Deletes log files from the container. Target a single file with file, a category with type, or age out old data with olderThanDays. Set confirm=true to authorize a destructive delete; the response reports how many files were removed and the total bytes reclaimed.
Name In Type Required Description filequery string No File query parameter typequery string No Type query parameter olderThanDaysquery string No OlderThanDays query parameter confirmquery string No Confirm query parameter
curl -X DELETE " https://proj123-cnt456-exec-1.eu-west.containers.hoody.icu/api/v1/exec/logs/clear?olderThanDays=30&confirm=true "
await client . exec . logs . clear ({ olderThanDays : " 30 " , confirm : " true " });
" message " : " Removed 17 log file(s) older than 30 day(s); freed 4194304 bytes. "
" error " : " Invalid parameter format " ,
" code " : " VALIDATION_ERROR " ,
" timestamp " : " 2025-01-16T10:32:14.812Z "
Error Code Title Description Resolution VALIDATION_ERRORInvalid input Request parameters failed validation Check parameter format and requirements
" error " : " Internal server error " ,
" timestamp " : " 2025-01-16T10:32:14.812Z "