Azure Storage Destination
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、
お気軽にご連絡ください。
The Azure Storage destination is available for the Archive Logs template. Use this destination to send your logs in Datadog-rehydratable format to an Azure Storage bucket for archiving. You need to set up Datadog Log Archives if you haven’t already, and then set up the destination in the pipeline UI.
If you already have a Datadog Log Archive configured for Observability Pipelines, skip to Set up the destination for your pipeline.
You need to have Datadog’s Google Cloud Platform integration installed to set up Datadog Log Archives.
Create a storage account
Create an Azure storage account if you don’t already have one.
- Navigate to Storage accounts.
- Click Create.
- Select the subscription name and resource name you want to use.
- Enter a name for your storage account.
- Select a region in the dropdown menu.
- Select Standard performance or Premium account type.
- Click Next.
- In the Blob storage section, select Hot or Cool storage.
- Click Review + create.
Create a storage bucket
- In your storage account, click Containers under Data storage in the left navigation menu.
- Click + Container at the top to create a new container.
- Enter a name for the new container. This name is used later when you set up the Observability Pipelines Azure Storage destination.
Note: Do not set immutability policies because the most recent data might need to be rewritten in rare cases (typically when there is a timeout).
Connect the Azure container to Datadog Log Archives
- Navigate to Datadog Log Forwarding.
- Click New archive.
- Enter a descriptive archive name.
- Add a query that filters out all logs going through log pipelines so that none of those logs go into this archive. For example, add the query
observability_pipelines_read_only_archive
, assuming no logs going through the pipeline have that tag added. - Select Azure Storage.
- Select the Azure tenant and client your storage account is in.
- Enter the name of the storage account.
- Enter the name of the container you created earlier.
- Optionally, enter a path.
- Optionally, set permissions, add tags, and define the maximum scan size for rehydration. See Advanced settings for more information.
- Click Save.
See the Log Archives documentation for additional information.
Set up the destination for your pipeline
Set up the Amazon S3 destination and its environment variables when you set up an Archive Logs pipeline. The information below is configured in the pipelines UI.
- Enter the name of the Azure container you created earlier.
- Optionally, enter a prefix. Prefixes are useful for partitioning objects. For example, you can use a prefix as an object key to store objects under a particular directory. If using a prefix for this purpose, it must end in
/
to act as a directory path; a trailing /
is not automatically added.
Set the environment variables
Enter the Azure connection string you created earlier.
The connection string gives the Worker access to your Azure Storage bucket.
To get the connection string:
- Navigate to Azure Storage accounts.
- Click Access keys under Security and networking in the left navigation menu.
- Copy the connection string for the storage account and paste it into the Azure connection string field on the Observability Pipelines Worker installation page.
How the destination works
Event batching
A batch of events is flushed when one of these parameters is met. See event batching for more information.
Max Events | Max Bytes | Timeout (seconds) |
---|
None | 100,000,000 | 900 |