Sending logs to Logtail using 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"
  1. Restart Vector:
systemctl restart vector

That's all 🎉

Make sure to replace <YOUR_LOGTAIL_SOURCE_TOKEN> with your own source token from