---
title: Processors
description: >-
  Learn about the processors available for parsing, structuring, and enriching
  logs, metrics, and traces in Observability Pipelines.
breadcrumbs: Docs > Observability Pipelines > Processors
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Processors

## Overview{% #overview %}

{% alert level="info" %}
The processors outlined in this documentation are specific to on-premises logging environments. To parse, structure, and enrich cloud-based logs, see the [Log Management](https://docs.datadoghq.com/logs/log_configuration/logs_to_metrics.md) documentation.
{% /alert %}

Use Observability Pipelines' processors to parse, structure, and enrich your logs and metrics. When you create a pipeline in the UI, pre-selected processors are added to your processor group based on the selected template. You can add additional processors and delete any existing ones based on your processing needs.

Processor groups are executed from top to bottom. The order of the processors is important because events are checked by each processor, but only events that match the processor's filters are processed. To modify the order of the processors, use the drag handle on the top left corner of the processor you want to move.

**Note**: For a pipeline canvas, there is a limit of 25 processor groups and a total of 150 processors.

## Processors{% #processors %}

These are the available processors:

{% tab title="Logs" %}

- [Add Environment Variables Processor](https://docs.datadoghq.com/observability_pipelines/processors/add_environment_variables.md)
- [Add Hostname Processor](https://docs.datadoghq.com/observability_pipelines/processors/add_hostname.md)
- [Custom Processor](https://docs.datadoghq.com/observability_pipelines/processors/custom_processor.md)
- [Deduplicate Processor](https://docs.datadoghq.com/observability_pipelines/processors/dedupe.md)
- [Edit Fields Processor](https://docs.datadoghq.com/observability_pipelines/processors/edit_fields.md)
- [Enrichment Table Processor](https://docs.datadoghq.com/observability_pipelines/processors/enrichment_table.md)
- [Filter Processor](https://docs.datadoghq.com/observability_pipelines/processors/filter.md)
- [Generate Metrics Processor](https://docs.datadoghq.com/observability_pipelines/processors/generate_metrics.md)
- [Grok Parser Processor](https://docs.datadoghq.com/observability_pipelines/processors/grok_parser.md)
- [Integration Pipelines Processor (Preview)](https://docs.datadoghq.com/observability_pipelines/processors/integration_pipelines.md)
- [Parse JSON Processor](https://docs.datadoghq.com/observability_pipelines/processors/parse_json.md)
- [Parse XML Processor](https://docs.datadoghq.com/observability_pipelines/processors/parse_xml.md)
- [Quota Processor](https://docs.datadoghq.com/observability_pipelines/processors/quota.md)
- [Reduce Processor](https://docs.datadoghq.com/observability_pipelines/processors/reduce.md)
- [Remap to OCSF Processor](https://docs.datadoghq.com/observability_pipelines/processors/remap_ocsf.md)
- [Sample Processor](https://docs.datadoghq.com/observability_pipelines/processors/sample.md)
- [Sensitive Data Scanner Processor](https://docs.datadoghq.com/observability_pipelines/processors/sensitive_data_scanner.md)
- [Spike Protection Processor (Preview)](https://docs.datadoghq.com/observability_pipelines/processors/spike_protection.md)
- [Split Array](https://docs.datadoghq.com/observability_pipelines/processors/split_array.md)
- [Tags](https://docs.datadoghq.com/observability_pipelines/processors/tags.md)
- [Throttle](https://docs.datadoghq.com/observability_pipelines/processors/throttle.md)

**Note**: The Generate Metrics processor and the Quota processor with an overflow destination aren't available as per-source or shared processors.
{% /tab %}

{% tab title="Metrics" %}

- [Aggregate](https://docs.datadoghq.com/observability_pipelines/processors/aggregate.md)
- [Edit Tags](https://docs.datadoghq.com/observability_pipelines/processors/edit_tags.md)
- [Filter](https://docs.datadoghq.com/observability_pipelines/processors/filter.md)
- [Tag Allow/Block List](https://docs.datadoghq.com/observability_pipelines/processors/tag_allow_block_list.md)
- [Tag Cardinality Control](https://docs.datadoghq.com/observability_pipelines/processors/tag_cardinality_control.md)

{% /tab %}

## Per-source and shared processors for multiple sources{% #per-source-and-shared-processors %}

{% callout %}
##### Join the Preview!

Per-source and shared processors are in Preview. Contact your account manager to request access.
{% /callout %}

When you have multiple sources for a pipeline, you might want to modify events from specific sources or all sources before the Worker sends them through different branches, which have their own processor groups. By using per-source and shared processors, you can avoid having to add the same processors to each branch's processor group.

For example, the log pipeline in the following image has three sources: Datadog Agent, Amazon Data Firehose, and HTTP/S Client. The Worker sends all logs from those sources to two different branches.

{% image
   source="https://docs.dd-static.net/images/observability_pipelines/processors/multiple_sources_branches.a6621424abb3c9a1e579a31994daabba.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/observability_pipelines/processors/multiple_sources_branches.a6621424abb3c9a1e579a31994daabba.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="A pipeline with three sources and two branches that send logs to Datadog, Datadog Archives, and CrowdStrike NG-SIEM." /%}

Suppose you want to:

- Sample all logs from the Datadog Agent source
- Deduplicate logs from all sources

Instead of adding the same processors to each branch's processor group, add a per-source processor for the Datadog Agent and a shared processor to deduplicate logs from all sources.

{% image
   source="https://docs.dd-static.net/images/observability_pipelines/processors/per_source_shared_processors_tab.db04907b3c5546f0db85c6aa24a75055.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/observability_pipelines/processors/per_source_shared_processors_tab.db04907b3c5546f0db85c6aa24a75055.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The Datadog Agent source panel with per-source Sample and Tags processors and a shared Dedupe processor." /%}

The Worker sends logs through the per-source processors first, then through the shared processors.

{% image
   source="https://docs.dd-static.net/images/observability_pipelines/processors/per_source_shared_processors_diagram.15f90a4cb824303757fd50a79f195336.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/observability_pipelines/processors/per_source_shared_processors_diagram.15f90a4cb824303757fd50a79f195336.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="A diagram showing logs sent from three sources through per-source and shared processors, then to branches and destinations." /%}

The following aren't available as per-source or shared processors:

- Generate Metrics processor
- Quota processor with an overflow destination
- Packs

**Note**: Per-source and shared processor groups count toward the 25 processor group limit per canvas.

## Processor groups{% #processor-groups %}

{% alert level="info" %}
Configuring a pipeline with processor groups is only available for Worker versions 2.7 and later.
{% /alert %}

{% image
   source="https://docs.dd-static.net/images/observability_pipelines/processors/processor_groups.94ef017e75d60aa47838ee201bc0d31b.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/observability_pipelines/processors/processor_groups.94ef017e75d60aa47838ee201bc0d31b.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="A Splunk HEC source sending logs to three filtered processor groups, then to Microsoft Sentinel and Splunk HEC." /%}

You can organize your processors into logical groups to help you manage them. Each processor group has a Group Filter so that those processors are only applied to specific events. For example, if you want the group processors to only process events coming from `vpc`, then use the group filter `source:vpc`. You can also add filters for each individual processor.

Processor groups and the processors within each group are executed from top to bottom. The order of the processors is important because events are checked by each processor, but only events that match the processor's filters are processed. To change the order of the processors, use the drag handle on the top left corner of the processor you want to move.

**Note**: There is a limit of 25 processor groups per pipeline canvas. For example, in a dual-ship pipeline with two destinations, the combined number of processor groups across both destinations cannot exceed 25. You can have the groups in any combination, such as 15 on one destination and 10 on the other.

## Further Reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [Rehydrate archived logs in any SIEM or logging vendor with Observability Pipelines](https://www.datadoghq.com/blog/rehydrate-archived-logs-with-observability-pipelines)
- [Transform and enrich your logs with Datadog Observability Pipelines](https://www.datadoghq.com/blog/observability-pipelines-transform-and-enrich-logs/)
