# How to access Redis log file?

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:

```bash
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:

```bash
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:

```bash
redis-cli CONFIG GET *
```

```bash
tail -f `less  /etc/redis/redis.conf | grep logfile|cut -d\  -f2`
```
