`homeboy logs`
Synopsis
homeboy logs <COMMAND>Subcommands
list <project_id>show <project_id> <path> [-n|--lines <lines>] [-f|--follow]clear <project_id> <path>search <project_id> <path> <pattern> [options]
search
homeboy logs search <project_id> <path> <pattern> [options]Options:
-i, --ignore-case: Case insensitive search-n, --lines <n>: Limit to last N lines before searching-C, --context <n>: Show N lines of context around matches
Examples:
# Search for errors in a log file
homeboy logs search mysite /var/log/php-errors.log "Fatal error"
# Case-insensitive search with context
homeboy logs search mysite /var/log/apache/error.log "timeout" -i -C 3
# Search last 1000 lines only
homeboy logs search mysite /var/log/debug.log "user_id" -n 1000JSON output
Non-follow subcommands
Note: logs show accepts --lines even in follow mode, but it is ignored when --follow is set.
Note:
logs list,logs show(without--follow),logs clear, andlogs searchoutput JSON wrapped in the global JSON envelope described in the JSON output contract. The object below refers todata.
command:logs.list|logs.show|logs.clear|logs.searchproject_identries: present forlistlog: present forshow(non-follow)cleared_path: present forclearsearch_result: present forsearch
Note: logs list, logs show (without --follow), logs clear, and logs search output JSON wrapped in the global JSON envelope described in the JSON output contract. The object below refers to data.
pathlabeltail_lines
Note: logs list, logs show (without --follow), logs clear, and logs search output JSON wrapped in the global JSON envelope described in the JSON output contract. The object below refers to data.
path(full resolved path)linescontent(tail output)evidence: machine-readable metadata describing the captured log snippet
Entry objects (entries[]):
Log object (log):
path: full resolved pathpattern: search pattern usedmatches: array of match objectsmatch_count: number of matchesevidence: machine-readable metadata describing the search scope and captured match output
Pinned log objects (pinned_logs.logs[]) include the same fields as log, plus label when configured.
line_number: line number in the filecontent: matching line content
Search result object (search_result):
evidence_type:log_tailorlog_searchsource_path: full resolved log pathlabel: pinned log label, when configuredrequested_lines: requested tail line count forlog_tailcaptured_lines: number of lines captured in the returned snippet or grep outputbyte_count: byte count of the returned snippet or grep outputpattern: search pattern forlog_searchsearch_scope_lines:--linesvalue forlog_search, when providedcontext_lines:--contextvalue forlog_search, when providedcase_insensitive: whether--ignore-casewas used forlog_searchmatch_count: parsed match count forlog_search
Follow mode (logs show --follow)
Match objects (matches[]):
Exit code
- Follow mode exit code matches the underlying interactive command.