Redis Logs
Redis log monitoring could be a painful process. To ease this, Site24x7 AppLogs has already segregated crucial log components and sorted them under different field names before they are presented to the user as PID, roles, date & time, log level, and message. Learn more about log management with Site24x7.
Getting started
- Log in to your Site24x7 account.
- Download and install the Site24x7 Server Monitoring agent (Windows | Linux).
- Go to Admin > AppLogs > Log Profile and Add Log Profile.
Logs file path
Each application writes logs in different folders and files. By default, Redis logs are sourced from the below-mentioned folder path for the respective Operating System. If you have logs in a different folder, you can mention it under the File Path to source them from that particular folder while creating a log profile.
Log pattern
$PID:number$:$Role$ $DateTime:date$ $LogLevel$ $Message$
This is the default pattern defined by Site24x7 for parsing Redis logs based on the sample log mentioned below.
Sample log
3489:M 06 Mar 09:13:40.537 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
The above sample log can be separated into 5 fields, each of which will take its respective value from here and will then be uploaded to Site24x7.
Field name | Field value |
PID | 3489 |
Roles | M |
Date Time | 06 Mar 09:13:40.537 |
Log Level | WARNING |
Message | The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. |
Related log types
-
On this page
- Getting started
- Logs file path
- Log pattern
- Sample log
- Related log types