![]() |
VOOZH | about |
Logs
Use the Datadog Archives destination to send logs to Amazon S3 for archiving in Datadog-rehydratable format. You can then query these logs with Archive Search. Use Archive Search’s Search & Rehydration mode when you need to re-index results for full platform access.
Notes:
You can also route logs to Snowflake using the Datadog Archives destination.
To use the Datadog Archives destination, you must install Datadog’s AWS integration so you can configure Datadog Log Archives.
If you already have Datadog Log Archives configured, skip to Set up the destination for your pipeline.
<MY_BUCKET_NAME_1> and <MY_BUCKET_NAME_1>/<MY_OPTIONAL_BUCKET_PATH_1> with the information for the S3 bucket you created in the previous section.{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DatadogUploadAndRehydrateLogArchives",
"Effect": "Allow",
"Action": ["s3:PutObject", "s3:GetObject"],
"Resource": "arn:aws:s3:::<MY_BUCKET_NAME_1>/<MY_OPTIONAL_BUCKET_PATH_1>/*"
},
{
"Sid": "DatadogRehydrateLogArchivesListBucket",
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::<MY_BUCKET_NAME_1>"
}
]
}
Create a service account to use the policy you created above.
observability_pipelines_read_only_archive, assuming no logs going through the pipeline have that tag added.See the Log Archives documentation for additional information.
Configure the Datadog Archives destination when you set up an Archive Logs pipeline. You can set up a pipeline in the UI, using the API, or with Terraform. The steps in this section are configured in the UI.
After you select the Datadog Archives destination in the pipeline UI:
/ to act as a directory path; a trailing / is not automatically added./). For example, app-logs/ or service-logs/.Select an AWS authentication option. If you are only using the user or role you created earlier for authentication, do not select Assume role. Select Assume role only if the user or role you created earlier needs to assume a different role to access the AWS resource. The assumed role’s permissions must be explicitly defined.
If you select Assume role:
Toggle the switch to enable Buffering Options. Enable a configurable buffer on your destination to ensure intermittent latency or an outage at the destination doesn’t create immediate backpressure, and allow events to continue to be ingested from your source. Disk buffers can also increase pipeline durability by writing data to disk, ensuring buffered data persists through a Worker restart. See Destination buffers for more information.
If you enter the following values for your Datadog Archives destination:
test-op-bucketop-logsStandardThen these are the values you enter for configuring the S3 bucket for Log Archives:
test-op-bucketop-logsStandardThese are the defaults used for secret identifiers and environment variables.
There are no secret identifiers to configure.
There are no environment variables to configure.
You can route logs from Observability Pipelines to Snowflake using the Datadog Archives destination by configuring Snowpipe in Snowflake to automatically ingest those logs. Snowpipe continuously monitors your S3 bucket for new files and automatically ingests them into your Snowflake tables, ensuring near real-time data availability for analytics or further processing. When logs are collected by Observability Pipelines, they are written to an S3 bucket. To set this up:
The Observability Pipelines Worker uses the standard AWS credential provider chain for authentication. See AWS SDKs and Tools standardized credential providers for more information.
The Observability Pipelines Worker requires these policy permissions to send logs to Amazon S3:
s3:ListBuckets3:PutObjects3:GetObjectA batch of events is flushed when one of these parameters is met. See event batching for more information.
| Maximum Events | Maximum Size (MB) | Timeout (seconds) |
|---|---|---|
| None | 100 | 900 |
| |