The Log Management API provides access to execution logs produced by the Hoody exec subsystem. Use these endpoints to list available log files, read or stream their contents, search across multiple files, and clear log data by file or age.
Returns the set of available execution log files. Results can be filtered by type and limited in count.
Name In Type Required Description typequery string No Type query parameter limitquery string No Limit query parameter
curl -X GET " https://api.hoody.com/api/v1/exec/logs/list?type=execution&limit=50 " \
-H " Authorization: Bearer <token> "
const result = await client . exec . logs . list ( {
"file" : " exec-2024-01-15.log " ,
"modified" : " 2024-01-15T10:30:00Z "
"file" : " exec-2024-01-14.log " ,
"modified" : " 2024-01-14T18:22:11Z "
"error" : " VALIDATION_ERROR " ,
"code" : " VALIDATION_ERROR " ,
"timestamp" : " 2024-01-15T10:30:00Z " ,
"issue" : " must be a positive integer "
Error Code Title Description Resolution VALIDATION_ERRORInvalid input Request parameters failed validation Check parameter format and requirements
"error" : " Internal server error " ,
"timestamp" : " 2024-01-15T10:30:00Z "
Streams the contents of a single log file. Pass follow=true to keep the connection open and receive new lines as they are appended.
Name In Type Required Description filequery string Yes File query parameter followquery string No Follow query parameter
curl -X GET " https://api.hoody.com/api/v1/exec/logs/stream?file=exec-2024-01-15.log&follow=true " \
-H " Authorization: Bearer <token> "
const result = await client . exec . logs . stream ( {
file: " exec-2024-01-15.log " ,
"error" : " VALIDATION_ERROR " ,
"code" : " VALIDATION_ERROR " ,
"timestamp" : " 2024-01-15T10:30:00Z " ,
"issue" : " missing required parameter "
Error Code Title Description Resolution VALIDATION_ERRORInvalid input Request parameters failed validation Check parameter format and requirements
"timestamp" : " 2024-01-15T10:30:00Z " ,
"identifier" : " exec-2024-01-15.log "
Error Code Title Description Resolution NOT_FOUNDResource not found The requested resource does not exist Verify the resource identifier
"error" : " Internal server error " ,
"timestamp" : " 2024-01-15T10:30:00Z "
Reads a range of lines from a log file, with optional filtering and tail/head behavior.
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://api.hoody.com/api/v1/exec/logs/read " \
-H " Authorization: Bearer <token> " \
-H " Content-Type: application/json " \
"file": "exec-2024-01-15.log",
"executionId": "exec_a1b2c3d4",
const result = await client . exec . logs . read ( {
file: " exec-2024-01-15.log " ,
executionId: " exec_a1b2c3d4 " ,
"file" : " exec-2024-01-15.log " ,
" 2024-01-15T10:30:01Z [ERROR] Database connection refused " ,
" 2024-01-15T10:30:02Z [ERROR] Retry attempt 1 failed " ,
" 2024-01-15T10:30:04Z [ERROR] Retry attempt 2 failed "
"modified" : " 2024-01-15T10:35:00Z "
"error" : " VALIDATION_ERROR " ,
"code" : " VALIDATION_ERROR " ,
"timestamp" : " 2024-01-15T10:30:00Z " ,
"issue" : " must be a positive integer "
Error Code Title Description Resolution VALIDATION_ERRORInvalid input Request parameters failed validation Check parameter format and requirements
"timestamp" : " 2024-01-15T10:30:00Z " ,
"identifier" : " exec-2024-01-15.log "
Error Code Title Description Resolution NOT_FOUNDResource not found The requested resource does not exist Verify the resource identifier
"error" : " Internal server error " ,
"timestamp" : " 2024-01-15T10:30:00Z "
Searches across one or more log files using either a plain substring query or a regular expression. Results are returned as an array of matches with surrounding context.
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://api.hoody.com/api/v1/exec/logs/search " \
-H " Authorization: Bearer <token> " \
-H " Content-Type: application/json " \
"query": "connection refused",
"files": ["exec-2024-01-15.log", "exec-2024-01-14.log"],
const result = await client . exec . logs . search ( {
query: " connection refused " ,
files: [ " exec-2024-01-15.log " , " exec-2024-01-14.log " ] ,
"query" : " connection refused " ,
"searchType" : " substring " ,
"file" : " exec-2024-01-15.log " ,
"content" : " 2024-01-15T10:30:01Z [ERROR] Database connection refused "
"file" : " exec-2024-01-14.log " ,
"content" : " 2024-01-14T18:22:11Z [ERROR] Upstream connection refused "
"error" : " VALIDATION_ERROR " ,
"code" : " VALIDATION_ERROR " ,
"timestamp" : " 2024-01-15T10:30:00Z " ,
"issue" : " invalid regular expression "
Error Code Title Description Resolution VALIDATION_ERRORInvalid input Request parameters failed validation Check parameter format and requirements
"error" : " Internal server error " ,
"timestamp" : " 2024-01-15T10:30:00Z "
Deletes log files matching the supplied filters. Use confirm=true to acknowledge a destructive operation. Combine with olderThanDays to target only stale logs.
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://api.hoody.com/api/v1/exec/logs/clear?type=execution&olderThanDays=30&confirm=true " \
-H " Authorization: Bearer <token> "
const result = await client . exec . logs . clear ( {
"message" : " Logs cleared successfully "
"error" : " VALIDATION_ERROR " ,
"code" : " VALIDATION_ERROR " ,
"timestamp" : " 2024-01-15T10:30:00Z " ,
"issue" : " must be true to acknowledge destructive action "
Error Code Title Description Resolution VALIDATION_ERRORInvalid input Request parameters failed validation Check parameter format and requirements
"error" : " Internal server error " ,
"timestamp" : " 2024-01-15T10:30:00Z "