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.
    Add the following Logtail sink configuration into your vector-agent.toml
    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!
  3. 3.
    Reload Vector configuration and restart it:
    1
    kubectl apply -k .
    2
    kubectl rollout restart -n vector daemonset/vector-agent
    Copied!
    That's all πŸŽ‰
Make sure you replace YOUR_LOGTAIL_SOURCE_TOKEN with your own source token from Logtail.com.
Last modified 2mo ago
Copy link