Vector (recommended)
Forward your logs to Logtail with Vector.
  1. 1.
    ​Install Vector on your server.
  2. 2.
    Configure your sources according to the Vector documentation.
  3. 3.
    Add the following Logtail sink to your config:
/etc/vector/vector.toml
1
[sinks.logtail]
2
type = "http"
3
inputs = [ "choose", "your", "sources" ]
4
uri = "https://in.logtail.com/"
5
encoding.codec = "json"
6
request.headers.Authorization = "Bearer YOUR_LOGTAIL_SOURCE_TOKEN"
Copied!
Make sure to replaceYOUR_LOGTAIL_SOURCE_TOKEN with your own source token from Logtail.com.
4. Restart Vector:
1
systemctl restart vector
Copied!
That's all πŸŽ‰
​
​
Last modified 7mo ago
Copy link