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

# List Log

Read an installation's log, oldest first, from an entry on. The log is the progress view and the history: every
install, upgrade and uninstall appends to it, and nothing rewrites it
([The log](https://docs.blobhub.io/blob-types/installer/overview.md#the-log)).

## **POST** `/revisions/:id/data/query` (Command: `list_log`)

### Request Body

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `command` | string | Yes | Must be `list_log`. |
| `installation` | string | Yes | The installation's alias. |
| `after` | string | No | An entry id (exclusive): only newer entries. Left out, the log from its oldest entry. |
| `limit` | integer | No | Entries per page, 1-500. Default `100`. |

### Response

| Parameter | Type | Description |
| :- | :- | :- |
| `entries` | array | The page of entries, oldest first. |
| `next` | string | The last entry's id, or `after` as given when no entry is newer. Pass it back as `after`. |

Each entry:

| Field | Type | Description |
| :- | :- | :- |
| `id` | string | The entry's id. Ids sort in the order the entries were written. |
| `at` | string | When it was written. |
| `operation` | string | The operation that wrote it: `install`, `upgrade` or `uninstall`. |
| `level` | string | `info`, `warning` or `error`. |
| `message` | string | A sentence, printed as it is. |
| `by` | string | The user id of whoever asked for the operation. |

A log holds at most `blobhub.package.installer.log_entries_per_installation` entries
([Limits](https://docs.blobhub.io/general/limits.md#the-catalog)); past it, the oldest are trimmed.

### Following an operation

`install` and `uninstall` answer as soon as the work starts, and the log shows the rest:

1. Hold the id of the last entry read before the request, or none for a new installation.
2. Once a second, read `list_log` with that id as `after`, print the `entries`, and keep `next`.
3. Read [Get Installation](https://docs.blobhub.io/blob-types/installer/operations/get-installation.md) each time too. While its status is
   `installing` or `uninstalling`, go back to step 2.
4. Once it is not, read `list_log` once more, for the entries written as the status changed. The operation ended
   `ready`, `failed` or `uninstalled`.

### Errors

| Status | Error | Cause |
| :- | :- | :- |
| 400 | `invalid_request_body` | A parameter has the wrong type, or `limit` is outside 1-500. |
| 403 | `forbidden` | The caller does not have READ on the installer blob. |
| 404 | `installation_not_found` | The installer blob holds no installation of that alias. |

### Example

The start of the upgrade of `reports` to 0.3.0, read after the last entry of its first install:

```json Request theme={null}
{
  "command": "list_log",
  "installation": "reports",
  "after": "1795184410000-0000",
  "limit": 100
}
```

```json Response theme={null}
{
  "status": "success",
  "entries": [
    {
      "id": "1796202907120-0000",
      "at": "2026-12-02T09:15:07.120Z",
      "operation": "upgrade",
      "level": "info",
      "message": "upgrade from 0.2.0 to 0.3.0 requested by Ana Ruiz",
      "by": "e2d9a6f1-4c37-4b85-a0e9-6f13b7c2d508"
    },
    {
      "id": "1796202907121-0000",
      "at": "2026-12-02T09:15:07.121Z",
      "operation": "upgrade",
      "level": "info",
      "message": "updates blob reports-flows",
      "by": "e2d9a6f1-4c37-4b85-a0e9-6f13b7c2d508"
    },
    {
      "id": "1796202907121-0001",
      "at": "2026-12-02T09:15:07.121Z",
      "operation": "upgrade",
      "level": "info",
      "message": "updates blob reports-schedules",
      "by": "e2d9a6f1-4c37-4b85-a0e9-6f13b7c2d508"
    },
    {
      "id": "1796202907121-0002",
      "at": "2026-12-02T09:15:07.121Z",
      "operation": "upgrade",
      "level": "info",
      "message": "widget report-viewer asks to: read session objects, read threads",
      "by": "e2d9a6f1-4c37-4b85-a0e9-6f13b7c2d508"
    },
    {
      "id": "1796202907121-0003",
      "at": "2026-12-02T09:15:07.121Z",
      "operation": "upgrade",
      "level": "info",
      "message": "runs reports-migrate in session reports, from 0.2.0 to 0.3.0",
      "by": "e2d9a6f1-4c37-4b85-a0e9-6f13b7c2d508"
    }
  ],
  "next": "1796202907121-0003"
}
```

The next read passes `"after": "1796202907121-0003"` and returns what the worker has written since, up to
`ready at 0.3.0`.


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