curl --request GET \
--url https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/{job_id}/ \
--header 'x-api-key: YOUR_API_KEY'
import time
import requests
url = "https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/{job_id}/"
headers = {"x-api-key": "YOUR_API_KEY"}
while True:
job = requests.get(url, headers=headers).json()
if job.get("status") in ("SUCCESS", "FAILED") or "msg" in job:
break
time.sleep(3)
print(job.get("result", {}).get("report") or job)
{
"job_id": "3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30",
"status": "RUNNING",
"step": "extracting",
"filename": "app.log",
"created_at": "2026-12-04T14:58:49.120000+00:00",
"expires_at": "2026-12-11T14:58:49.120000+00:00",
"status_url": "/api/v1/{guru_slug}/log-analysis/3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30/"
}
{
"job_id": "3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30",
"status": "SUCCESS",
"step": "done",
"filename": "app.log",
"created_at": "2026-12-04T14:58:49.120000+00:00",
"expires_at": "2026-12-11T14:58:49.120000+00:00",
"status_url": "/api/v1/{guru_slug}/log-analysis/3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30/",
"result": {
"report": "## Overview\n...",
"findings": "...",
"statistics": {
"total_lines": 2221,
"lines_after_filtering": 140
}
}
}
{
"job_id": "3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30",
"status": "FAILED",
"step": "failed",
"filename": "app.log",
"created_at": "2026-12-04T14:58:49.120000+00:00",
"expires_at": "2026-12-11T14:58:49.120000+00:00",
"status_url": "/api/v1/{guru_slug}/log-analysis/3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30/",
"error": "The log file could not be analysed."
}
{
"msg": "Log analysis job not found or expired"
}
Endpoints
Log Analysis Status
Read the status and report of a log analysis job
GET
/
{guru_slug}
/
log-analysis
/
{job_id}
/
curl --request GET \
--url https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/{job_id}/ \
--header 'x-api-key: YOUR_API_KEY'
import time
import requests
url = "https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/{job_id}/"
headers = {"x-api-key": "YOUR_API_KEY"}
while True:
job = requests.get(url, headers=headers).json()
if job.get("status") in ("SUCCESS", "FAILED") or "msg" in job:
break
time.sleep(3)
print(job.get("result", {}).get("report") or job)
{
"job_id": "3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30",
"status": "RUNNING",
"step": "extracting",
"filename": "app.log",
"created_at": "2026-12-04T14:58:49.120000+00:00",
"expires_at": "2026-12-11T14:58:49.120000+00:00",
"status_url": "/api/v1/{guru_slug}/log-analysis/3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30/"
}
{
"job_id": "3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30",
"status": "SUCCESS",
"step": "done",
"filename": "app.log",
"created_at": "2026-12-04T14:58:49.120000+00:00",
"expires_at": "2026-12-11T14:58:49.120000+00:00",
"status_url": "/api/v1/{guru_slug}/log-analysis/3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30/",
"result": {
"report": "## Overview\n...",
"findings": "...",
"statistics": {
"total_lines": 2221,
"lines_after_filtering": 140
}
}
}
{
"job_id": "3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30",
"status": "FAILED",
"step": "failed",
"filename": "app.log",
"created_at": "2026-12-04T14:58:49.120000+00:00",
"expires_at": "2026-12-11T14:58:49.120000+00:00",
"status_url": "/api/v1/{guru_slug}/log-analysis/3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30/",
"error": "The log file could not be analysed."
}
{
"msg": "Log analysis job not found or expired"
}
Poll a job started with Log Analysis until its
status is SUCCESS or FAILED. A typical analysis finishes in under a minute; polling every few seconds is enough.
A job is only visible to the Guru that started it. After it expires (7 days by default) this endpoint returns 404. A job that stops making progress for 3 hours is reported as FAILED; upload the file again.
Path Parameters
The
job_id returned by Log Analysis.Headers
Your API key for authentication. You can obtain your API key from the Gurubase dashboard.
Response
Only when
status is SUCCESS.Only when
status is FAILED. A short message, for example This Guru has reached its cost limit.curl --request GET \
--url https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/{job_id}/ \
--header 'x-api-key: YOUR_API_KEY'
import time
import requests
url = "https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/{job_id}/"
headers = {"x-api-key": "YOUR_API_KEY"}
while True:
job = requests.get(url, headers=headers).json()
if job.get("status") in ("SUCCESS", "FAILED") or "msg" in job:
break
time.sleep(3)
print(job.get("result", {}).get("report") or job)
{
"job_id": "3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30",
"status": "RUNNING",
"step": "extracting",
"filename": "app.log",
"created_at": "2026-12-04T14:58:49.120000+00:00",
"expires_at": "2026-12-11T14:58:49.120000+00:00",
"status_url": "/api/v1/{guru_slug}/log-analysis/3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30/"
}
{
"job_id": "3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30",
"status": "SUCCESS",
"step": "done",
"filename": "app.log",
"created_at": "2026-12-04T14:58:49.120000+00:00",
"expires_at": "2026-12-11T14:58:49.120000+00:00",
"status_url": "/api/v1/{guru_slug}/log-analysis/3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30/",
"result": {
"report": "## Overview\n...",
"findings": "...",
"statistics": {
"total_lines": 2221,
"lines_after_filtering": 140
}
}
}
{
"job_id": "3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30",
"status": "FAILED",
"step": "failed",
"filename": "app.log",
"created_at": "2026-12-04T14:58:49.120000+00:00",
"expires_at": "2026-12-11T14:58:49.120000+00:00",
"status_url": "/api/v1/{guru_slug}/log-analysis/3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30/",
"error": "The log file could not be analysed."
}
{
"msg": "Log analysis job not found or expired"
}
Was this page helpful?