# Copy Field

### Description

The Copy Field processor can be used to copy telemetry from one field to another.

### Use

The Copy Field processor is utilized for copying telemetry fields in metrics, logs, and traces based on specified conditions.

### Supported Types

| Metrics | Logs | Traces |
| ------- | ---- | ------ |
| ✓       | ✓    | ✓      |

### Configuration

<table><thead><tr><th width="112.39453125">Field</th><th>Description</th></tr></thead><tbody><tr><td>Telemetry Types</td><td>The types of telemetry to apply the processor to.</td></tr><tr><td>Condition</td><td>A condition that determines when this processor is applied.</td></tr><tr><td>Copy From</td><td>The telemetry field to copy from.</td></tr><tr><td>Copy To</td><td>The telemetry field to copy to.</td></tr></tbody></table>

### Example Configuration(s)

#### Copying An Entire Log Body

In this configuration, the entire body field is copied to a field on attributes called `body_nested`. This method is useful for destinations that ignore or use the body field in an undesired manner.

**Web Interface**

<figure><img src="https://1405008107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgmiOMzBfoNFwmKJFHMcJ%2Fuploads%2Fgit-blob-7650974484db310938e494bc41f29b706aca5c62%2Fintegrations-processors-copy-field-image-1.png?alt=media" alt="Bindplane docs - Copy Field - image 1"><figcaption></figcaption></figure>

#### Nesting A Field

This configuration will nest a resource attributes field named `host.name` within an attributes field named simply `name` that is nested under a top level attributes field named `host`. This is useful for simplifying or standardizing the data structure of incoming logs. In this example, note the use of bracket notation to create nested fields.

**Web Interface**

<figure><img src="https://1405008107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgmiOMzBfoNFwmKJFHMcJ%2Fuploads%2Fgit-blob-2150a24f7b5ca3374202dc8f1e1a464f350e6086%2Fintegrations-processors-copy-field-image-2.png?alt=media" alt="Bindplane docs - Copy Field - image 2"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bindplane.com/integrations/processors/copy-field.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
