Vector (recommended)

Forward your logs to Logtail with Vector.
  1. Install Vector on your server.

  2. Configure your sources according to the Vector documentation.

  3. Add the following Logtail sink to your config:

type = "http"
inputs = [ "choose", "your", "sources" ]
uri = ""
encoding.codec = "json"
request.headers.Authorization = "Bearer YOUR_LOGTAIL_SOURCE_TOKEN"

Make sure to replaceYOUR_LOGTAIL_SOURCE_TOKEN with your own source token from

4. Restart Vector:

systemctl restart vector

That's all 🎉