How to access Redis log file?

Better Stack Team
Updated on October 11, 2023

As many other services, Redis stores its log in the special log file. The location of the Redis log depends on the type of the installation.

With a default apt-get installation on Ubuntu 14.04, Redis log files are located at /var/log/redis/redis-server.log and you can display last 10 lines by running the following command:

sudo tail /var/log/redis/redis-server.log

With a default from-source installation on Ubuntu 14.04, Redis log files are located at /var/log/redis_6379.log and you can display the last 10 lines using the following command:

sudo tail /var/log/redis_6379.log

You can change the location of the Redis logs in the config file which you can access using one of the following commands:

redis-cli CONFIG GET *
tail -f `less  /etc/redis/redis.conf | grep logfile|cut -d\  -f2`
Got an article suggestion? Let us know
Explore more
Licensed under CC-BY-NC-SA

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Make your mark

Join the writer's program

Are you a developer and love writing and sharing your knowledge with the world? Join our guest writing program and get paid for writing amazing technical guides. We'll get them to the right readers that will appreciate them.

Write for us
Writer of the month
Marin Bezhanov
Marin is a software engineer and architect with a broad range of experience working...
Build on top of Better Stack

Write a script, app or project on top of Better Stack and share it with the world. Make a public repository and share it with us at our email.

or submit a pull request and help us build better products for everyone.

See the full list of amazing projects on github