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

> ## Agent Instructions
> These are the docs for Sevalla, a platform for deploying applications, databases, static sites, object storage and load balancers. The dashboard is at https://app.sevalla.com.
> Bold text in steps is an exact dashboard label.
> To act on a Sevalla account, prefer the Sevalla MCP server (https://mcp.sevalla.com/mcp, see https://docs.sevalla.com/ai-agents/overview.md), then the Sevalla CLI (https://docs.sevalla.com/developer-tools/cli.md), then the REST API (https://api-docs.sevalla.com, OpenAPI spec at https://api.sevalla.com/v3/openapi.json).
> Every page index is at https://docs.sevalla.com/llms.txt.

# Analytics

> Read a load balancer's traffic from its access logs: requests, response times, server errors, status codes and countries, for any range in the last 60 days, with filters.

A load balancer's analytics show the requests that pass through it, from its access logs: how many there are, how fast they're answered, which status codes they get and where they come from. They're on the load balancer's **Overview** tab, under the traffic diagram.

## Open the analytics

In the sidebar, click **Load balancers**, then click the load balancer. Scroll the **Overview** tab down to **Analytics**.

The traffic diagram on the same tab shows a separate number: the average response time over the past hour for the load balancer and for each destination. It doesn't follow the analytics time range. See [The Overview tab](https://docs.sevalla.com/load-balancers/overview.md#the-overview-tab).

## Choose a time range

Open the **Time range** picker and choose a preset, or set a custom start and end date and time.

| Option | Values |
| - | - |
| Presets | **Last 1 hour** (the default), **Last 6 hours**, **Last 12 hours**, **Last 1 day**, **Last 2 days**, **Last 4 days**, **Last 7 days**, **Last 14 days**, **Last 30 days** |
| Custom range | Any start and end within the last 60 days |

With a preset, **Live** shows next to the picker and the charts move forward on their own. To zoom in, drag across a chart: the selection becomes a custom range for every chart. Hovering a chart shows the values at that time on every chart at once. The range and filters are part of the page's address, so a copied link opens the same view.

## Filter the charts

Click **Add filter**, then choose a **Field**, a **Condition** and a **Value**. Every filter applies to every chart on the page; add more to narrow them further, and remove one with the **x** on it.

| Field | Values | Conditions |
| - | - | - |
| **Destination** | One of the load balancer's destinations | equals, does not equal |
| **Source IP** | The visitor's IP address | equals, does not equal, contains, does not contain, starts with, does not start with, ends with, does not end with |
| **Country** | A country | equals, does not equal |
| **Device type** | Desktop, Mobile, Tablet, Unknown | equals, does not equal |
| **HTTP method** | `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `HEAD`, `OPTIONS` and others | equals, does not equal |
| **Path** | The requested path, such as `/checkout` | Same as **Source IP** |
| **User agent** | The visitor's user agent | Same as **Source IP** |
| **HTTP version** | HTTP/1.0, HTTP/1.1, HTTP/1.2, HTTP/2, HTTP/3, SPDY/3.1 | equals, does not equal |
| **Status code** | A status code, such as `502` | equals, does not equal, greater than or equals, less than or equals |

## What the analytics show

Three numbers sum up the range:

| Number | What it is |
| - | - |
| **Requests** | All requests in the range, with the average per minute |
| **Avg. response time** | The average response time, with the highest P95 in the range |
| **Server errors** | The share of responses with a `5xx` status code, with their number |

The charts under them:

| Chart | What it shows |
| - | - |
| **Requests per minute** | Requests over time, as an average per minute |
| **Response time** | Response times over time: the average (**Avg**) and the **P90**, **P95** and **P99** percentiles |
| **Status codes** | Responses over time, grouped as `1xx`, `2xx`, `3xx`, `4xx` and `5xx` |
| **Requests by country** | A world map and a ranked list of the countries requests come from, with the destinations marked on the map |

![The Status codes chart of a load balancer, with responses grouped from 1xx to 5xx](https://assets.sevalla.com/screenshots/light/load-balancer-analytics-status-codes.png)

In **Requests by country**, hover a country in the list and click **Filter** to show only its requests, or **Exclude** to leave them out: both add a **Country** filter. Use the map's zoom buttons to look closer.

![Requests by country: a world map with the destinations marked and the countries ranked by requests, one country pointed at](https://assets.sevalla.com/screenshots/light/load-balancer-analytics-countries.png)

## Find a slow or failing destination

**1. Find when it started**

Add a **Status code** filter, greater than or equals `500`, or look at **Response time**, and drag across the chart to zoom in on the problem.

**2. Find the destination**

Add a **Destination** filter for each destination in turn, with equals, to see which one returns the errors or answers slowly.

**3. Take it out of rotation**

[Disable that destination](https://docs.sevalla.com/load-balancers/create.md#disable-or-enable-a-destination) to stop its traffic while you fix it, then enable it again.

For an application destination, its own [analytics](https://docs.sevalla.com/applications/analytics.md) and [logs](https://docs.sevalla.com/applications/logs.md) show what happened inside it.


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