Skip to content

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.

NameInTypeRequiredDescription
typequerystringNoType query parameter
limitquerystringNoLimit query parameter
Terminal window
curl -X GET "https://api.hoody.com/api/v1/exec/logs/list?type=execution&limit=50" \
-H "Authorization: Bearer <token>"

Streams the contents of a single log file. Pass follow=true to keep the connection open and receive new lines as they are appended.

NameInTypeRequiredDescription
filequerystringYesFile query parameter
followquerystringNoFollow query parameter
Terminal window
curl -X GET "https://api.hoody.com/api/v1/exec/logs/stream?file=exec-2024-01-15.log&follow=true" \
-H "Authorization: Bearer <token>"

Reads a range of lines from a log file, with optional filtering and tail/head behavior.

NameTypeRequiredDefaultDescription
filestringNoFile
executionIdstringNoExecution Id
linesintegerNo100Lines
tailbooleanNotrueTail
searchstringNoSearch
Terminal window
curl -X POST "https://api.hoody.com/api/v1/exec/logs/read" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"file": "exec-2024-01-15.log",
"executionId": "exec_a1b2c3d4",
"lines": 200,
"tail": true,
"search": "ERROR"
}'

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.

NameTypeRequiredDefaultDescription
querystringNoQuery
regexstringNoRegex
filesarrayNoFiles
limitintegerNo1000Limit
caseSensitivebooleanNofalseCase Sensitive
Terminal window
curl -X POST "https://api.hoody.com/api/v1/exec/logs/search" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"query": "connection refused",
"files": ["exec-2024-01-15.log", "exec-2024-01-14.log"],
"limit": 500,
"caseSensitive": false
}'

Deletes log files matching the supplied filters. Use confirm=true to acknowledge a destructive operation. Combine with olderThanDays to target only stale logs.

NameInTypeRequiredDescription
filequerystringNoFile query parameter
typequerystringNoType query parameter
olderThanDaysquerystringNoOlderThanDays query parameter
confirmquerystringNoConfirm query parameter
Terminal window
curl -X DELETE "https://api.hoody.com/api/v1/exec/logs/clear?type=execution&olderThanDays=30&confirm=true" \
-H "Authorization: Bearer <token>"