Skip to main content
PUT
/
api
/
v1
/
config
/
log-retention-configs
/
{slug}
cURL
curl --request PUT \
  --url https://{tenant}.chronosphere.io/api/v1/config/log-retention-configs/{slug} \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "log_retention_config": {
    "filter": "<string>",
    "mode": "ENABLED",
    "name": "<string>",
    "retention_days": 123,
    "slug": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Path Parameters

slug
string
required

Body

application/json
create_if_missing
boolean

If true, the LogRetentionConfig will be created if it does not already exist, identified by slug. If false, an error will be returned if the LogRetentionConfig does not already exist.

dry_run
boolean

If true, validates the specified configuration without creating or updating the LogRetentionConfig. If the specified configuration is valid, the endpoint returns a partial response without the LogRetentionConfig. If the specified configuration is invalid, the endpoint returns an error.

log_retention_config
object

The LogRetentionConfig to update.

Response

A successful response containing the updated LogRetentionConfig.

log_retention_config
object

LogRetentionConfig configures long-term retention policies for log data. Each config specifies a filter to match logs and retention parameters for cold storage (Iceberg). Multiple configs per tenant are supported; when configs overlap, the longest retention wins.