# Requests and logs

> Find one call, filter by outcome, and see why it failed.

Source: https://docs.sparset.ai/guide/requests-and-logs

**Requests and logs** lists a deployment’s requests, newest first: when each arrived, how it ended, how long it took, and its request ID. Use it when a call failed and you need to find it, or to see whether a deployment is failing right now.

In the workspace: Deployments / your deployment / Requests and logs

The tab has one card, **Request records**: “What happened to my requests?” When the deployment is slow, down or without signal, the status card sits above it, as on every tab.

## The answer first

Above the list, one line answers for the range you picked, for example “1,204 requests in the last 24 hours. 12 failing.” The line under it gives the share that failed with a server error or a rate limit, and how many were client errors. Client errors are the caller’s request being refused, so they don’t count as failing. When the newest few requests all failed, it says when that started.

## Filter by outcome

The track beside the search shows each outcome with its count for the range:

| Outcome | What it means |
| --- | --- |
| **All** | Every request |
| **Succeeded** | The service answered |
| **Client errors** | The service couldn’t accept the request as it was sent |
| **Server errors** | The service failed while handling the request |
| **Rate limited** | The service turned the request away because too many were sent |

The same names are used on Performance’s **How requests ended** card and the API tab’s **If a call fails** row, and both open this tab with the matching outcome already picked.

The **Errors** numbers on Home, the Deployments list and Overview count server errors and rate-limited requests. Client errors are not counted there. For what each outcome means for your code, see [When a call fails](https://docs.sparset.ai/reference/when-a-call-fails).

## Read the list

| Column | What it shows |
| --- | --- |
| **Local time** | When the request arrived, newest first |
| **Request ID** | The ID to quote to Support |
| **Outcome** | Succeeded, Client error, Server error or Rate limited |
| **Response time** | How long it took |
| **Waiting in line** | How long it waited before the service picked it up, when recorded |
| **Tokens in → out** | For text models; **Images** for image models |
| **Error** | The error category and code, when one was recorded |

The list shows 10 requests, then **Show all N requests** for the rest of the newest 100. **Copy all N as JSON** copies every listed request.

Select a row to open it. An opened request says what its outcome means in a sentence, then every recorded detail: request ID, local and UTC time, outcome, response time, waiting in line, tokens or images, and the error category and code. It has **Copy request ID**, **Copy as JSON**, **Show only … errors** when it has an error category, and a link to the tab that helps most: **View API** for a client error, **View reliability** for a server error, **View performance** otherwise.

While a row is open the list holds still. Newer requests wait above it as “N newer requests. Show them” instead of moving the row you are reading.

## Find a request by ID

1. Paste the ID into **Find a request by ID** and press Enter.
2. The request opens with every recorded detail.
3. To go back to the list, select the × in the field.

A search covers the last 7 days, whatever range you picked. If nothing matches, the card says so and offers **Clear search**. The API tab’s **Find a request by ID** link opens this tab with the cursor already in the field.

## Ranges

Pick 1 hour, 24 hours or 7 days at the right of the tab row; the tab starts on 24 hours. Changing the range keeps the outcome you picked. If the range has no requests, the card says so and offers a wider one. Before a deployment’s first request, it says **No requests yet.**

If requests to the deployment are not measured yet, the tab says **Measurements aren’t connected** instead of showing a list.

## What is kept, and what is not

Request records are kept for 30 days. A record holds the outcome and timing of a request, not its prompt or output: there are no request or response bodies to open here.

## How to get here

- The **Requests and logs** tab on any deployment.
- A count on Performance’s **How requests ended** card, or **View requests** on its Requests card.
- The API tab’s **If a call fails** row: Client errors, Server errors, Rate limited, or Find a request by ID.
- **See requests** on the status card on Reliability, while the deployment is slow, down or without signal.

Everyone who can open the deployment can read this tab. See [A deployment’s tabs](https://docs.sparset.ai/guide/a-deployment) for the others.
