---
title: String Builder Processor
description: >-
  Add a new attribute to an event with the result of a template to aggregate
  different attributes or raw strings
breadcrumbs: Docs > Event Management > Pipelines and Processors > String Builder Processor
---

# String Builder Processor

Use the string builder processor to add a new attribute (without spaces or special characters) to an event with the result of the provided template. This enables aggregation of different attributes or raw strings into a single attribute.

The template is defined by both raw text and blocks with the syntax `%{attribute_path}`.

**Notes**:

- This processor only accepts attributes with values or an array of values in the block.
- If an attribute cannot be used (object or array of object), it is replaced by an empty string or the entire operation is skipped depending on your selection.
- If a target attribute already exists, it is overwritten by the result of the template.
- Results of a template cannot exceed 256 characters.

**Example String Builder**

{% image
   source="https://docs.dd-static.net/images/logs/log_configuration/processor/stringbuilder_processor.7323e62cd6f9bda3ae17d8a5af674ddc.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/logs/log_configuration/processor/stringbuilder_processor.7323e62cd6f9bda3ae17d8a5af674ddc.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="String builder processor" /%}
