---
title: "target_hostname | Speedscale Docs"
description: "Learn how to define Target Hostname extractors in Speedscale to efficiently filter and manipulate traffic data according to your application's needs. This documentation provides detailed guidance on implementation and configuration for optimal traffic analysis."
canonical: "https://docs.speedscale.com/guides/transformation/extractors/target_hostname/"
---

[Documentation index](https://docs.speedscale.com/guides/llms.txt) | [Markdown](https://docs.speedscale.com/guides/transformation/extractors/target_hostname/index.md) | [Canonical page](https://docs.speedscale.com/guides/transformation/extractors/target_hostname/)

# target\_hostname

<a id="purpose"></a>

### Purpose

**target\_hostname** extracts the target hostname, the URL host not including the port, from the RRPair. Extracting the target host can be used to change the URL of a request during replay. Note, this is distinct from the host header which may be different than the target host and can be extracted through the [http\_req\_header extractor](https://docs.speedscale.com/guides/transformation/extractors/http_req_header/).

The target hostname value does not include the port. Modify the port with the [target\_port extractor](https://docs.speedscale.com/guides/transformation/extractors/target_port/).

<a id="usage"></a>

### Usage

```json
"type": "target_hostname"
```

<a id="example"></a>

### Example

```json
"type": "target_hostname",
```
