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:

/etc/vector/vector.toml
[sinks.logtail]
type = "http"
inputs = [ "choose", "your", "sources" ]
uri = "https://in.logtail.com/"
encoding.codec = "json"
request.headers.Authorization = "Bearer YOUR_LOGTAIL_SOURCE_TOKEN"

Make sure to replaceYOUR_LOGTAIL_SOURCE_TOKEN with your own source token from Logtail.com.

4. Restart Vector:

systemctl restart vector

That's all 🎉