Skip to main content
POST
Upload a log or HAR file and get a report back: an overview, a findings table, a timeline, the likely root cause and next checks. The analysis runs in the background. This endpoint answers 202 at once with a job_id; poll Log Analysis Status for the report.
A log analysis is not a question: it does not appear in analytics and does not count toward the question quota. Its LLM cost is tracked and the Guru’s cost limit applies. The uploaded file is cleared when the job ends, and the job and its report are deleted after 7 days.
Requirements and limits:
  • Log processing must be enabled for the Guru.
  • The file must be an uncompressed text log. UTF-8, UTF-16 (with BOM) and Windows-1254 are accepted; compressed or binary files are refused.
  • The file size limit is the Guru’s log attachment limit (50 MB by default). A .har file uses the HAR limit (50 MB by default, never above 70 MB) and is cleaned before it is stored (header values and cookies removed, secrets masked, static file bodies dropped).
  • At most 3 analyses can be queued or running for a Guru at once.

Path Parameters

string
required
The slug of the Guru that analyses the log.

Headers

string
required
Your API key for authentication. You can obtain your API key from the Gurubase dashboard.

Body Parameters

Send the request as multipart/form-data.
file
required
The log file to analyse (for example app.log, agent.jsonl or session.har).
string
What to look for in the log, up to 2000 characters. Without it, the analysis finds the errors, failures and anomalies, when they happened, and what most likely caused them.

Response

string
The job’s id (UUID). Use it with Log Analysis Status.
string
PENDING right after the upload.
string
queued right after the upload.
string
The uploaded file’s name.
string
When the job was created (ISO 8601).
string | null
When the job and its report are deleted (ISO 8601). After this time the status endpoint returns 404.
string
The path to poll for the job’s status, relative to the API host.