Closed prh7 closed 8 years ago
If --csv
option is specified without the file name, the lines will be printed to the standard output, so you easily can write a custom filter that processes the output as you wish.
redis-stat --csv | your-custom-log-processing-script
FYI, I sometimes use this script to rotate log files. Anyway I think you got the point.
Presently with redis-stat, it can generates log data regarding key performance indicators of redis-cluster and stash the logs into the single specified .csv file by the --csv command. Usecase: I wanted to stash the generated logs into different .csv files in different time intervals. Lets say for example: we have 24 hours in a day and we divide the day into 4 different time intervals comprising of 6 hours each.