logs

Search logs (LogQL, or the filter params)

Your logs, one call instead of a run_command tail loop: every detached command's AND every job run's stdout/stderr ships here as produced, labeled by mission and run (block buffering and stopped nodes stop mattering - logs outlive nodes and disks). Filter by mission / run (a job-/cmd-/ses- id) / node / text substring for the common case, or pass full LogQL. Returns time-ordered lines, newest kept when the limit cuts (truncated:true) - narrow the range or filter rather than paging.

post/preview/logs/queries

Request

  • Base URL: https://autoresearch.sfcompute.com
  • URL: https://autoresearch.sfcompute.com/preview/logs/queries
  • Auth: HTTP bearer

Query parameters

workspacestring

Act in this workspace (its slug). Omitted: the token's bound workspace, then the organization's default. Never ambient - there is no switch-workspace mutation on this door.

Request body

endstring nullable

Range end, RFC3339 (default: now).

limitinteger nullable

Max lines returned, newest kept (default 100, cap 1000).

missionstring nullable

Filter: mission name (composes {mission="..."}).

nodestring nullable

Filter: node name (composes {node="..."}).

querystring nullable

Full LogQL (optional - the filter params below compose the query for the common case). $mission/$run substitute the params.

runstring nullable

Filter: one run - a job-/cmd-/ses- scope id (composes {run="..."}).

startstring nullable

Range start, RFC3339 (default: one hour before end).

textstring nullable

Filter: plain-text substring the line must contain (|= "...").

Response

The capability's JSON result.

objectstring

The resource type, when the result is one resource.

Changes

No recorded changes to this operation across all 1 revision of this API.