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:
[sinks.logtail]
type = "http"
inputs = [ "choose", "your", "sources" ]
uri = "https://in.logtail.com/"
encoding.codec = "json"
request.headers.Authorization = "Bearer YOUR_LOGTAIL_SOURCE_TOKEN"
Copied!
  1. Restart Vector:
systemctl restart vector
Copied!

That's all 🎉

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