Better Stack MySQL logging

Start logging in 2 minutes

Collect logs from your MySQL database using Vector.

1. Install

Select your platform:

Ubuntu • Debian

Configure the Vector APT repository and install Vector:

Install Vector
curl -1sLf \
  '' \
  | sudo -E bash
apt-get install vector

2. Setup

Download Vector configuration for your source:

Download Vector config
wget -O ->> /etc/vector/vector.toml \$SOURCE_TOKEN

3. Restart

Restart Vector to reload the configuration:

Restart Vector
systemctl restart vector

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


Seeing unrelated debugging messages in your logs?

After a fresh install, Vector comes preconfigured with a Demo logs source. It might be useful for initial testing, but don't forget to remove it afterwards.

Need help?

Please let us know at
We're happy to help! 🙏