# Split

### Description

The `Split` processor splits a string into a list of strings using a specified delimiter.

### Use

The `Split` processor divides a string into a list of strings using a delimiter. Common delimiters include commas (`,`) and newlines (`\`).

### Supported Types

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

### Configuration

<table><thead><tr><th width="151.3359375">Field</th><th>Description</th></tr></thead><tbody><tr><td>Telemetry Types</td><td>Specifies which types of telemetry the processor should be applied to.</td></tr><tr><td>Delimiter</td><td>The character or string used to split the field.</td></tr><tr><td>Condition</td><td>Defines when the processor should be applied. If not specified, the processor will attempt to process all telemetry.</td></tr><tr><td>Split From</td><td>The source field to split.</td></tr><tr><td>Split To</td><td>The destination field that will store the split values.</td></tr></tbody></table>

### Example Configuration(s)

#### Splitting a log body by commas

This example demonstrates splitting a log body by commas and storing the resulting values back in the log body. The processor only applies when the `body` field equals "a,b,c", as specified in the `Condition` field.

**Web Interface**

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

#### Setting an attribute based on a split log record body

This example shows how to split the `body` field by commas and store the resulting values in a new attribute called `splitField`.

**Web Interface**

<figure><img src="https://1405008107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgmiOMzBfoNFwmKJFHMcJ%2Fuploads%2Fgit-blob-191fd7c0a99628f60b8abb8fd508af56e6ff301b%2Fintegrations-processors-split-image-2.png?alt=media" alt="Bindplane docs - Split - 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/split.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.
