Make sure to replace <YOUR_LOGTAIL_SOURCE_TOKEN>
with your own source token from Logtail.com.
Explore documentation
Sending logs to Logtail using Vector
- Install Vector on your server.
- Configure your sources according to the Vector documentation.
- 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"
- Restart Vector:
systemctl restart vector
That's all 🎉