> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gurubase.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Log Analysis Status

> Read the status and report of a log analysis job

Poll a job started with [Log Analysis](https://docs.gurubase.ai/api-reference/endpoints/log-analysis.md) 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

**guru\_slug** `string` *required*

The slug of the Guru that started the job.

**job\_id** `string` *required*

The `job_id` returned by [Log Analysis](https://docs.gurubase.ai/api-reference/endpoints/log-analysis.md).

## Headers

**x-api-key** `string` *required*

Your API key for authentication. You can obtain your API key from the [Gurubase dashboard](https://app.gurubase.io/api-keys).

### Response

**job\_id** `string`

The job's id.

**status** `string`

One of `PENDING`, `RUNNING`, `SUCCESS` or `FAILED`.

**step** `string`

Progress inside the job: `queued`, `extracting`, `writing_report`, `done` or `failed`.

**filename** `string`

The uploaded file's name.

**created\_at** `string`

When the job was created (ISO 8601).

**expires\_at** `string | null`

When the job and its report are deleted (ISO 8601).

**status\_url** `string`

The path of this endpoint for the job.

**result** `object`

Only when `status` is `SUCCESS`.

**Result Object**

**report** `string`

The analysis report in Markdown: overview, findings table, timeline, likely root cause and next checks.

**findings** `string`

The extracted findings the report is written from, citing log lines.

**statistics** `object`

Extraction statistics, for example `total_lines` and `lines_after_filtering`.

**error** `string`

Only when `status` is `FAILED`. A short message, for example `This Guru has reached its cost limit.`

```bash cURL theme={null}
curl --request GET \
  --url https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/{job_id}/ \
  --header 'x-api-key: YOUR_API_KEY'
```

```python Python theme={null}
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)
```

```json 200 (running) theme={null}
{
    "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/"
}
```

```json 200 (success) theme={null}
{
    "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
        }
    }
}
```

```json 200 (failed) theme={null}
{
    "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."
}
```

```json 404 theme={null}
{
    "msg": "Log analysis job not found or expired"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.