Explore documentation
Better Stack PostgreSQL logging
Start logging in 2 minutes
Collect logs from your PostgreSQL database using Vector.
1. Install
Select your platform:
Ubuntu • Debian
Configure the Vector APT repository and install Vector:
Install Vector
curl -1sLf \
'https://repositories.timber.io/public/vector/cfg/setup/bash.deb.sh' \
| sudo -E bash
apt-get install vector
2. Setup
Download Vector configuration for your source:
Download Vector config
wget -O ->> /etc/vector/vector.toml \
https://logs.betterstack.com/vector-toml/postgresql/$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.
Need help?
Please let us know at hello@betterstack.com.
We're happy to help! 🙏