-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Rslog | ||
A small utility for viewing and monitoring redis slowlog. | ||
|
||
# Build | ||
You will need rustc and cargo to build it. | ||
Once you have it run the following command: | ||
``` | ||
cargo build --release | ||
``` | ||
The resulting binary will be located in ./target/release/rslog. | ||
|
||
# Usage | ||
|
||
``` | ||
$ rslog --help | ||
Redis slowlog reader 0.1.0 | ||
Rostyslav Ivanika <Rostyslav.Ivanika@gmail.com> | ||
Prints redis slowlog to stdout | ||
USAGE: | ||
rslog [FLAGS] [OPTIONS] | ||
FLAGS: | ||
-f, --follow Checks for new records in slowlog and prints if any | ||
--help Prints help information | ||
--json Format output as newline separated JSON | ||
-q, --quiet Silence all error messages | ||
-v Sets the level of verbosity | ||
-V, --version Prints version information | ||
OPTIONS: | ||
-h, --hostname <hostname> Server hostname [default: 127.0.0.1] | ||
-i, --interval <interval> Seconds between trying to get new messages from slowlog [default: | ||
5] | ||
-p, --port <port> Server port [default: 6379] | ||
--timeout <timeout> Timout for redis connection [default: 30] | ||
``` | ||
|
||
|