For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/observability_pipelines/processors/add_hostname.md. A documentation index is available at /llms.txt.

Add Hostname Processor

This product is not supported for your selected Datadog site. ().
Available for:

Logs

Overview

This processor adds a field with the name of the host that sent the log. For example, hostname: 613e197f3526. Note: If the hostname already exists, the Worker throws an error and does not overwrite the existing hostname.

Setup

To set up this processor:

  • Define a filter query. See Logs Search Syntax for more information.
    • Only logs that match the specified filter query are processed.
    • All logs, regardless of whether they match the filter query, are sent to the next step in the pipeline.