---
title: "Creating a Snapshot | Speedscale Docs"
description: "Create, tune, and restore snapshot traffic in Speedscale for repeatable API replay tests."
canonical: "https://docs.speedscale.com/guides/creating-a-snapshot/"
---

[Documentation index](https://docs.speedscale.com/guides/llms.txt) | [Markdown](https://docs.speedscale.com/guides/creating-a-snapshot/index.md) | [Canonical page](https://docs.speedscale.com/guides/creating-a-snapshot/)

# Creating a Snapshot

<a id="observe-traffic"></a>

## Observe Traffic

The Traffic Viewer provides a detailed log of every transaction in the system.

Click on one of the instances to open the Traffic Viewer which provides:

*   A time picker to look at trends during specific time windows
*   Throughput graphs for inbound calls to the service and outbound calls to backend systems
*   Filters for searching for specific requests or otherwise customizing the list

![Traffic Viewer](https://docs.speedscale.com/assets/images/observe-traffic-viewer-fc041546ac1efc1b1b7249bf2947e0f6.png)

<a id="filtering-"></a>

### Filtering[](https://docs.speedscale.com/guides/creating-a-snapshot/#analyze-steps)

Utilize the filters to drill down even further into a subset of requests or to filter out unwanted traffic like heartbeats.

![Filters](https://docs.speedscale.com/assets/images/select-filters-5069ad5134e4490bc5b7ccb9e68cf40c.png)

info

Did you know that you can filter traffic so that it is never sent to Speedscale cloud? This can help you prevent noise, lower your bill and keep private data safe. Check out the [filters](https://docs.speedscale.com/reference/filters/) section for suggestions.

Fitting a large selection into a snapshot

A snapshot supports up to 10,000,000 request/response pairs. Larger snapshots take longer to analyze, so use a **Sampled** filter to reduce a large selection while keeping whole sessions together. For example, keeping one in five sessions reduces the amount of traffic to analyze and replay. See [Sampling a large selection](https://docs.speedscale.com/guides/creating-filters/#sampling-a-large-selection).

<a id="request-response-details-"></a>

### Request Response Details[](https://docs.speedscale.com/guides/creating-a-snapshot/#overview)

Clicking on any individual row reveals a Request / Response Pair. This could be for an inbound transaction to the service, or even a call from the service to a downstream system, even if it uses TLS. The following information is shown in the view:

*   **Info** section includes high level details like response code, duration, URL, etc.
*   **Request** section includes the Headers and Body that were sent
*   **Response** section includes the Headers and Body that were received

![Request Response Pair](https://docs.speedscale.com/assets/images/observe-rrpair-e9c2a3b695e7ea2ed0ad333827457b42.png)

Now that you have identified the subset of traffic that you would like to replay, it's time to create a snapshot.

<a id="view-snapshot"></a>

## View Snapshot

A traffic snapshot is created from the selected traffic when running a replay so the same set of traffic can be reviewed and replayed again.

![Snapshot Overview with Tests, Mocks, Requests over time and Latency p95](https://docs.speedscale.com/assets/images/snapshot-overview-a5033e515505a38e2023d0c4c29718b9.jpg)

[Open screenshot full size](https://docs.speedscale.com/assets/images/snapshot-overview-a5033e515505a38e2023d0c4c29718b9.jpg)

The **Requests over time** chart separates Tests above zero from Mocks below zero. **Latency · p95** shows the recorded latency over time.

<a id="watch-a-snapshot-being-processed"></a>

### Watch a snapshot being processed

While Speedscale analyzes a new or reanalyzed snapshot, the top of the snapshot page shows its progress in three phases: **Prepare**, **Process traffic**, and **Build and upload artifacts**.

During **Process traffic** the panel shows:

*   How many request/response pairs have been processed and the percent complete. The total is the matching traffic Speedscale counted when you created the snapshot, or the count from the last analysis when you reanalyze. It is an estimate, so the bar does not fill until the phase finishes.
*   The current rate in request/response pairs per second, measured over the last minute, and about how long is left at that rate.
*   The time of the newest request processed, and when the snapshot's time window ends.
*   How long is left before the analysis time limit.

Each analysis has a time limit, and snapshots with more than 1,000,000 request/response pairs get four hours. If processing at the current rate would not finish in time, the panel warns you. Narrow the time window, choose fewer services, or use a **Sampled** filter, then create the snapshot again.

When Speedscale has no count, for example when the snapshot's traffic is more than 30 days old, the bar moves without a percentage and the panel shows the number processed so far.

<a id="lock-a-snapshot"></a>

### Lock a snapshot

If other teams or CI pipelines depend on a snapshot, you can lock it from the **⋮** menu so it cannot be renamed, edited, reanalyzed, or deleted until the locking user or an Admin unlocks it. See [Locking a Snapshot](https://docs.speedscale.com/guides/locking-a-snapshot/).

<a id="tune-and-inspect-a-snapshot"></a>

## Tune and inspect a snapshot

The snapshot page has four tabs: **Overview**, **Traffic**, **Prepare** and **Replays**.

**Overview** says whether the snapshot is ready to replay and shows what it recorded. **Traffic** is for looking at requests: select Tests, Mocks or one dependency across the top, and use Endpoints, Sessions, Database, Kafka and Findings to read the same traffic in other ways.

![The Traffic tab: Tests and Mocks across the top, the list of requests, and a Changes column that marks the requests with suggestions](https://docs.speedscale.com/assets/images/snapshot-traffic-d8223c0982accf64344138588873787f.png)

Select a request to read it in the pane beside the list. A request to a mock also has a **Signature** tab, which shows what the mock server matches on. **Recorded** and **After transforms** show one version at a time. **Compare** shows both side by side, highlights what changed, and widens the pane. The **Expand** icon fills the page with the pane, which helps on a small screen, and **Esc** collapses it. It is also on the request viewer on the main **Traffic** page and in reports. **After transforms** and **Compare** show saved transforms, not changes still waiting in **Prepare**.

In **Prepare**, review each suggestion and credential, its proposed transform chain, and the requests that chain matches. Open them in **Traffic** to check the scope. A warning that a chain matches no traffic means its filters need review before the chain can affect a replay. See [Traffic Transformation](https://docs.speedscale.com/guides/transformation/overview/).

![The Prepare tab: the list of suggestions, the selected transform chain with its values on a real request, and the requests it matches](https://docs.speedscale.com/assets/images/prepare-merged-row-edd151da3d154f83532c1807e5da05de.png)

<a id="restore-deleted-traffic"></a>

### Restore deleted traffic

If the snapshot has deleted RRPairs, its traffic toolbar offers **Restore deleted (N)**. Open it to see deleted IDs and available audit details. Select individual entries and choose **Restore selected**, or choose **Restore all**.

Restoring removes the deletion entries and triggers reanalysis. The list and traffic grid refresh afterward. The dialog lists IDs rather than the deleted request bodies. Snapshot write restrictions still apply, including locks and operations already in progress. If the control is unavailable on an older deployment, check that the backend supports snapshot restoration.

<a id="endpoint-grouping"></a>

## Endpoint Grouping

The **Endpoints** view on the **Traffic** tab groups URLs that fall in the same category automatically. In the following picture, every `/api/v3/breachedaccount/{account}` URL has been grouped into one row to give a better view of the results.

![The Endpoints view with /api/v3/breachedaccount/(.\*) grouped into one row](https://docs.speedscale.com/assets/images/Auto-Endpoint-Grouping-a533ce9f2b8c1b0c84e44863fac96fc2.png)

You can also define this grouping yourself with **Manage Regexes** in that view, or in the snapshot definition. For example, adding the following `endpoint_regexes` to the snapshot definition groups all `v1` API calls into one row.

```json
"endpoint_regexes":[
   {
     "url": "/v1/(.*)",
     "method":"(.*)"
   }
]
```

<a id="transform-traffic"></a>

## Transform Traffic

Speedscale provides a sophisticated data transformation system to ensure that traffic replays successfully.

info

Before using any custom configuration, attempt a traffic replay with defaults. The default `standard` configuration works in many cases so most users should skip ahead to the next step.

If a replay has low accuracy or unexpected behavior, inspect the affected requests in **Traffic**, then open the snapshot's **Prepare** tab to review suggestions, credentials, and transform chains. Use the chain editor to preview changes against a recorded request, save the configuration, and replay again to check the result. See [Traffic Transformation](https://docs.speedscale.com/guides/transformation/overview/) for the workflow. For help with your configuration, ask in the [Speedscale Slack community](https://slack.speedscale.com/) or [email support](mailto:support@speedscale.com).
