Send logs to Better Stack using Vector

Start logging to Better Stack

1. Install

Install Vector on your server.

2. Set up sources

Configure your sources according to the Vector documentation.

info

Want config for a specific technology that works out of the box?

Check out Logs sources in the left sidebar.

3. Set up sink

Add Better Stack sink to your Vector config:

Better Stack sink
[sinks.better_stack]
type = "http"
method = "post"
inputs = [ "*" ]
uri = "https://in.logs.betterstack.com/"
encoding.codec = "json"
request.headers.Authorization = "$SOURCE_TOKEN"

4. Restart

Restart Vector to reload the configuration:

Restart Vector
systemctl restart vector

You should see your logs in Better Stack -> Live tail.

Need help?

Please let us know at hello@betterstack.com.
We're happy to help! 🙏