Logging on a production system is important as it is a reflection of past status. When the system malfunctions, we may figure out the root cause of the problem by inspecting and analyzing the logs. In this recipe, we will introduce the logging options in Redis and show you how to interpret the logs of the Redis Server and Sentinels.
You need to finish the installation of the Redis Server, as we described in the Downloading and installing Redis recipe in Chapter 1, Getting Started with Redis. If you would like to inspect the logs of the Redis slave server and Sentinel, you also need to set up an environment with sentinels as we described in the Setting up Sentinel recipe of Chapter 7, Setting up High Availability and Cluster.