Datadog Forwarder

The Datadog Forwarder is a Lambda function you deploy inside your own AWS account to send logs from AWS to Datadog. It is triggered by S3 bucket event notifications or CloudWatch Logs subscriptions, and forwards the logs it receives to Datadog's intake.

Overview

The Datadog Forwarder is an AWS Lambda function whose job is to carry AWS logs to Datadog. Even with the AWS integration enabled, logs have to be pushed out from the AWS side, and this function is what you deploy inside your own AWS account to do the pushing. You install it as a CloudFormation stack, adjust tagging, exclusion, and redaction through parameters, and update the stack when you move to a new version. You care about this term when the AWS integration is in place but logs alone are not arriving, when logs you do not want to send or values that should be redacted get mixed in, and when an old version that nobody has updated keeps running.

A Lambda function that pushes logs out from the AWS side

The Datadog Forwarder is an AWS Lambda function for sending logs from AWS to Datadog. Its main targets are CloudWatch Logs log groups and logs in S3 buckets, and it can also carry logs that arrive via SNS and Kinesis events (Kinesis data streams for CloudWatch Logs only). If you attach a subscription filter on a log group or an event notification on a bucket as a trigger, the function starts each time new logs arrive and forwards them to Datadog (as of September 2026; Source: Datadog Forwarder). It can also carry metrics and traces from Lambda functions themselves, but Datadog recommends the Lambda Extension for that purpose, and the difference between the two paths is left to the Serverless Monitoring explainer.

  • New logs arrive in a log group or an S3 bucket.
  • A subscription filter or an event notification starts the Forwarder.
  • The Forwarder applies tagging / exclusion / redaction according to its parameters.
  • It sends over HTTPS to Datadog's intake, where log pipeline processing begins.
Source: the Overview and Parameters sections of Datadog Forwarder, arranged into a single flow (as of September 2026).

CloudFormation is the standard deployment, with Terraform and manual as options

The standard deployment is a CloudFormation template, and a Terraform module and manual deployment are also provided. In CloudFormation, you can create the stack by filling in DdApiKey (or a reference to a Secrets Manager / SSM parameter) and DdSite; the other parameters are optional. After creation, you attach triggers to the function with the logical ID Forwarder. The function's code field being empty is by design; the body is distributed as a Lambda layer. Version 4.1.0 and later are ARM64 only and do not run on x86_64 (as of September 2026; Source: Datadog Forwarder). It may already be installed via the AWS integration template, and for rollout to multiple regions or multiple accounts you use StackSets. The overall integration procedure and how to choose between this and the Firehose path are summarized in Setting up the AWS integration.

Updates and deletions are done at the stack level

Configuration changes and version upgrades of the Forwarder are done by updating the stack, not by touching the Lambda function directly. The procedure is to note the current version from the function's dd_forwarder_version tag, update the stack with the template latest.yaml (or a specific version's yaml), review the change set, and apply it. If you replace the .zip code by hand, it collides with the CloudFormation update on layer-distributed versions and produces startup errors. 5.0.0 is a major version with breaking changes: the exclusion / inclusion parameters now look only at the message part of the log, TCP submission was removed, and tagging for S3 and CloudWatch is now applied on the Datadog side by default. 5.2.0 and later require Python 3.14. Deletion is also a stack deletion, which removes the function and its accompanying resources together (as of September 2026; Source: Datadog Forwarder).

Parameters decide which logs not to send and which values to hide

Shaping before sending is also decided by parameters. DdTags adds tags such as env:prod to every forwarded log, and enabling DdFetchLambdaTags fetches and attaches the Lambda function's tags. ExcludeAtMatch withholds logs that match a regular expression, IncludeAtMatch sends only those that match, and if both apply, exclusion wins. RedactIp and RedactEmail replace IP addresses and email addresses. DdScrubbingRule replaces strings matching an arbitrary regular expression before sending (as of September 2026; Source: Datadog Forwarder). You can also drop logs with a Log Pipeline or an Exclusion Filter on the Datadog side, but dropping them at the Forwarder stage reduces the volume you send, and values that should be redacted never leave AWS. Setting DdForwardLog to false stops logs and carries only the Lambda function's metrics and traces.

Three things to check when only logs are missing

The state where metrics arrive but there are no logs happens when you do not know that logs alone travel a separate path. Metrics from the AWS integration arrive through a different route, but not a single line of logs comes unless there is a Forwarder or a path that replaces it. Check three things in order. First, whether the stack was created successfully and triggers are attached to the target log groups or buckets. Next, whether the execution role that reads S3 has s3:GetObject and whether DdSite matches your Datadog Site. If the cause is still not visible, temporarily set the environment variable DD_LOG_LEVEL to debug. The events received and the content sent to Datadog appear as-is in the function's logs (as of September 2026; Source: Datadog Forwarder). Be sure to remove debug once you have finished checking. If the forwarded logs carry tags, the rest is the same as any other log, and you can narrow down and investigate by Tag.

Share