The steps for logging options and how to interpret the log are as follows:
- To update the log level of Redis, update the loglevel directive in the Redis configuration, here we are changing the log level to debug on a Redis master server:
loglevel debug
- To update the log file location, set the logfile directive in the Redis configuration:
logfile "/var/log/redis/redis-server.log"
- You can also update the loglevel and logfile location by using the command CONFIG SET. This is useful when you want to temporarily lower the log level to debug an issue:
127.0.0.1:6379> CONFIG SET loglevel debug
OK
127.0.0.1:6379> CONFIG SET logfile "/var/log/redis/redis-server.log"
OK
- Do the same to one of the Sentinels, but specify a different ...