Kubernetes
Collect logs directly from your Kubernetes clusters. Configure everything in 5 minutes or less.
  1. 1.
    Follow the Vector guideline and set up the Kubernetes integration.
  2. 2.
    Append a configMapGenerator to your Vector kustomization.yaml file
    1
    configMapGenerator:
    2
    - name: vector
    3
    behavior: replace
    4
    files:
    5
    - vector-agent.toml
    Copied!
  3. 3.
    Add the following Logtail sink configuration into your vector-agent.toml file
    1
    [sinks.logtail]
    2
    type = "http"
    3
    inputs = ["kubernetes_logs"]
    4
    uri = "https://in.logtail.com/"
    5
    encoding.codec = "json"
    6
    auth.strategy = "bearer"
    7
    auth.token = "YOUR_LOGTAIL_SOURCE_TOKEN"
    Copied!
  4. 4.
    Reload Vector configuration and restart it:
    1
    kubectl apply -k .
    2
    kubectl rollout restart -n vector daemonset/vector
    Copied!
    That's all πŸŽ‰
Make sure you replace YOUR_LOGTAIL_SOURCE_TOKEN with your own source token from Logtail.com.
Copy link