Collection Config

Enable log collection for a cluster

Save user's collection preferences for a specific cluster

post/api/v1/k8s/logs/config

Request

  • Base URL
    http://localhost:8080
  • Auth
    none declared

Request body

app_filterstring
cluster_idstring
collection_intervalinteger

In minutes

exclude_namespacesstring[]
is_enabledboolean
log_levelsstring[]
max_logs_per_collectioninteger

Changed to *int

namespacestring

Assuming single namespace

Example request

{
  "app_filter": "my-app",
  "cluster_id": "your-cluster-id",
  "collection_interval": 5,
  "exclude_namespaces": [
    "kube-system",
    "kube-public"
  ],
  "is_enabled": true,
  "log_levels": [
    "INFO",
    "WARN",
    "ERROR"
  ],
  "max_logs_per_collection": 1000,
  "namespace": "default"
}

Response

Created

object required

Changes

No recorded changes to this operation across all 1 revision of this API.