Better Stack Redis logging

Start logging in 2 minutes

What you would like to collect from your Redis?

Collect logs & metrics

Collect logs and metrics from your Redis using Vector and redis exporter.

1. Set up Redis exporter

Create /etc/redis_exporter.conf config file:

/etc/redis_exporter.conf
export REDIS_ADDR="localhost:6379"
export REDIS_PASSWORD="your_password"

Fill in your Redis address and password

  • Replace localhost:6379 with address of your Redis instance.
  • Replace your_password with a password to your Redis instance.
    Find your password in /etc/redis/redis.conf file in requirepass directive.

2. Install Redis exporter

Install latest redis exporter:

Install redis exporter
curl -sSL https://telemetry.betterstack.com/install/redis_exporter | sudo -E bash

2. Run exporter

Start the Redis exporter:

Linux MacOS
systemctl start redis_exporter
launchctl start com.prometheus.redis_exporter

3. Set up Vector

Select your platform:

Install and configure Vector on Ubuntu or Debian:

Set up Vector
curl -sSL https://telemetry.betterstack.com/setup-vector/redis_with_metrics/$SOURCE_TOKEN \
  -o /tmp/setup-vector.sh && \
  bash /tmp/setup-vector.sh

Curious about what the script does?

  • Installs Vector using official package.
  • Configures Vector for your Better Stack source.
  • Enables and restarts Vector.

The script will ask for confirmation before making any changes.

You should see your logs in Better Stack → Live tail.

Collect only logs

Collect logs from your Redis database using Vector.

Select your platform:

Install and configure Vector on Ubuntu or Debian:

Set up Vector
curl -sSL https://telemetry.betterstack.com/setup-vector/redis/$SOURCE_TOKEN \
  -o /tmp/setup-vector.sh && \
  bash /tmp/setup-vector.sh

Curious about what the script does?

  • Installs Vector using official package.
  • Configures Vector for your Better Stack source.
  • Enables and restarts Vector.

The script will ask for confirmation before making any changes.

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! 🙏

Additional information

Looking for manual instructions to set up Vector?

Find step-by-step instructions in our dedicated Vector guide.