Datadog BYOC Logs Destination
Overview
Use Observability Pipelines’ BYOC (Bring Your Own Cloud) Logs destination to send logs to Datadog BYOC Logs.
Prerequisites
A running BYOC Logs cluster is required to receive logs. For an Operator deployment, create the pipeline and its destination first, then deploy the cluster and managed Worker with the pipeline ID. For a separately managed Worker, deploy the cluster and obtain its intake endpoint before installing the Worker. See the BYOC Logs installation guides.
Setup
Configure the BYOC Logs destination when you set up a 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.
Optional settings
Enable TLS
For Secrets Management: Only enter the identifiers for the TLS key pass. Do not enter the actual values.
Toggle the switch to Enable TLS.
- If you are using Secrets Management, enter the identifier for the key pass. See Secret defaults for the default used if the field is left blank.
- Enter the following certificate and key files:
Server Certificate Path: The path to the certificate file that has been signed by your Certificate Authority (CA) root file in DER, PEM, or CRT (X.509).- (Optional)
CA Certificate Path: The path to the certificate file that is your Certificate Authority (CA) root file in DER, PEM, or CRT (X.509). - (Optional)
Private Key Path: The path to the .key private key file that belongs to your Server Certificate Path in DER, PEM, or CRT (PKCS #8) format. - Notes:
- The configuration data directory
/var/lib/observability-pipelines-worker/config/ is automatically appended to the file paths. See Advanced Worker Configurations for more information. - The file must be readable by the
observability-pipelines-worker group and user.
- (Optional) Enter the server name for TLS certificate verification.
If you enter secret identifiers and then choose to use environment variables, the environment variable is the identifier entered and prepended with DD_OP_. For example, if you entered PASSWORD_1 for a password identifier, the environment variable for that password is DD_OP_PASSWORD_1.
Buffering
After you select the BYOC Logs destination in the pipeline UI, you can configure buffering.
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 left unconfigured, your destination uses a memory buffer with a capacity of 500 events.
- To configure a buffer on your destination:
- Select the buffer type you want to set (Memory or Disk).
- Enter the buffer size and select the unit.
- Maximum memory buffer size is 128 GB.
- Maximum disk buffer size is 5 TB.
- Note: For Worker versions 2.20.x and older, the maximum disk buffer size is 500 GB.
- In the Behavior on full buffer dropdown menu, select whether you want to block events or drop new events when the buffer is full.
Secret defaults
For a Worker managed by a DatadogBYOCCluster, the Operator supplies the BYOC Logs indexer endpoint, Datadog site, and shared API key. Configure the pipeline destination before deployment, then provide the pipeline ID in spec.components.pipelines[].pipelineID. The following manual endpoint settings apply to standalone Workers. See Install BYOC Logs with the Datadog Operator.
These are the defaults used for secret identifiers and environment variables.
- BYOC Logs endpoint URL identifier:
- References the intake endpoint to which Observability Pipelines sends logs.
- In your secrets manager:
- Define the cluster URL, such as
http://byoc-logs.acme.internal:7280. Note: The URL must include the port. - The Worker appends
/api/v2/logs and /api/v1/validate to the endpoint URL, so these endpoints must be allowed if you are using forwarding or firewall rules.
- The default identifier is
DESTINATION_CLOUDPREM_ENDPOINT_URL.
- BYOC Logs TLS passphrase identifier (when TLS is enabled):
- The default identifier is
DESTINATION_CLOUDPREM_KEY_PASS.
- BYOC Logs endpoint URL
- Observability Pipelines sends logs to the BYOC Logs intake endpoint. Define the cluster URL, such as
http://byoc-logs.acme.internal:7280. Note: The URL must include the port. - The Worker appends
/api/v2/logs and /api/v1/validate to the endpoint URL, so these endpoints must be allowed if you are using forwarding or firewall rules. - Stored as the environment variable:
DD_OP_DESTINATION_CLOUDPREM_ENDPOINT_URL.
- BYOC Logs TLS passphrase (when TLS is enabled)
- Stored as the environment variable:
DD_OP_DESTINATION_CLOUDPREM_KEY_PASS.
Health metrics
For component metrics and destination buffer metrics emitted by all destinations, see the Pipelines Usage Metrics documentation. To filter or group by Datadog Logs destination metrics, use the tag component_type:datadog_logs.
How the destination works
Event batching
A batch of events is flushed when one of these parameters is met. See Destinations event batching for more information.
| Maximum Events | Maximum Size (MB) | Timeout (seconds) |
|---|
| 1,000 | 4.25 | 5 |