Skip to content

datadog update-log-archive-gcs

Update an existing archive

Description

Update an existing archive

Synopsis

datadog update-log-archive-gcs
    [--site <site>]
    [<archive>]
    [--include_tags]
    --name <name>
    --query <query>
    [--rehydration_size <rehydration_size>]
    [--rehydration_tags <rehydration_tags>]
    --container <container>
    [--path <path>]
    --client_email <client_email>
    --project_id <project_id>

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

archive - (string)

     Archive ID
     Example: "archive-1"
     Default: _None_      Attributes: optional

include_tags - (bool)

     set "true" to save tags. Else, the tags will be deleted when logs sent to archive
     Example: --include_tags
     Default: false      Attributes: optional

name - (string)

     The archive name
     Example: --name "name-1"
     Default: _None_      Attributes: required

query - (string)

     The archive query/filter. Logs matching this query are included in the archive
     Example: --query "query-1"
     Default: _None_      Attributes: required

rehydration_size - (int)

     Maximum scan size for rehydration in gb from this archive
     Example: --rehydration_size 1
     Default: _None_      Attributes: optional

rehydration_tags - (string)

     An array of tags to add to rehydrated logs from an archive
     Example: --rehydration_tags "rehydration_tags-1"
     Default: _None_      Attributes: optional, multiple allowed

container - (string)

     The container/Bucket where the archive will be stored
     Example: --container "container-1"
     Default: _None_      Attributes: required

path - (string)

     The archive path
     Example: --path "path-1"
     Default: _None_      Attributes: optional

client_email - (string)

     client email
     Example: --client_email "client_email-1"
     Default: _None_      Attributes: required

project_id - (string)

     project ID
     Example: --project_id "project_id-1"
     Default: _None_      Attributes: required

Examples

datadog update-log-archive-gcs "archive-1" --name "name-1" --query "query-1" --rehydration_size 1 --rehydration_tags "rehydration_tags-1" --container "container-1" --path "path-1" --client_email "client_email-1" --project_id "project_id-1"

Access Control

To use this command, you need access to the following:

Field Value
Action "update"
Service Type "datadog"
Service Instance
Namespace
Object Type "archive"
Object ID

Please see Access Control for details.