Provides a Datadog Logs Archive API resource, which is used to create and manage Datadog logs archives.
resource "datadog_logs_archive" "my_s3_archive" {
name = "my s3 archive"
query = "service:myservice"
s3_archive {
bucket = "my-bucket"
path = "/path/foo"
account_id = "001234567888"
role_name = "my-role-name"
}
}
name
(String) Your archive name.query
(String) The archive query/filter. Logs matching this query are included in the archive.azure_archive
(Block List, Max: 1) Definition of an azure archive. (see below for nested schema)gcs_archive
(Block List, Max: 1) Definition of a GCS archive. (see below for nested schema)include_tags
(Boolean) To store the tags in the archive, set the value true
. If it is set to false
, the tags will be dropped when the logs are sent to the archive. Defaults to false
.rehydration_max_scan_size_in_gb
(Number) To limit the rehydration scan size for the archive, set a value in GB.rehydration_tags
(List of String) An array of tags to add to rehydrated logs from an archive.s3_archive
(Block List, Max: 1) Definition of an s3 archive. (see below for nested schema)id
(String) The ID of this resource.azure_archive
Required:
client_id
(String) Your client id.container
(String) The container where the archive is stored.storage_account
(String) The associated storage account.tenant_id
(String) Your tenant id.Optional:
path
(String) The path where the archive is stored.gcs_archive
Required:
bucket
(String) Name of your GCS bucket.client_email
(String) Your client email.Optional:
path
(String) Path where the archive is stored.project_id
(String) Your project id.s3_archive
Required:
account_id
(String) Your AWS account id.bucket
(String) Name of your s3 bucket.role_name
(String) Your AWS role nameOptional:
path
(String) Path where the archive is stored.Import is supported using the following syntax:
terraform import datadog_logs_archive.my_s3_archive 1Aabc2_dfQPLnXy3HlfK4hi