Skip to main content
POST
/
api
/
v1
/
config
/
log-control-config
cURL
curl --request POST \
  --url https://docs.chronosphere.io/api/v1/config/log-control-config \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dry_run": true,
  "log_control_config": {
    "rules": [
      {
        "filter": "<string>",
        "mode": "<unknown>",
        "name": "<string>",
        "type": "<unknown>"
      }
    ]
  }
}
'
{
  "log_control_config": {
    "created_at": "2023-11-07T05:31:56Z",
    "rules": [
      {
        "filter": "<string>",
        "mode": "<unknown>",
        "name": "<string>",
        "type": "<unknown>"
      }
    ],
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Body

application/json
dry_run
boolean

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

log_control_config
object

The LogControlConfig to create.

Response

A successful response containing the created LogControlConfig.

log_control_config
object

LogControlConfig is a singleton configuration object that specifies the configuration for log control.