Links

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
    configMapGenerator:
    - name: vector
    behavior: replace
    files:
    - vector-agent.toml
  3. 3.
    Add the following Logtail sink configuration into your vector-agent.toml file
    [sinks.logtail]
    type = "http"
    inputs = ["kubernetes_logs"]
    uri = "https://in.logtail.com/"
    encoding.codec = "json"
    auth.strategy = "bearer"
    auth.token = "YOUR_LOGTAIL_SOURCE_TOKEN"
  4. 4.
    Reload Vector configuration and restart it:
    kubectl apply -k .
    kubectl rollout restart -n vector daemonset/vector
    That's all 🎉
Make sure you replace YOUR_LOGTAIL_SOURCE_TOKEN with your own source token from Logtail.com.