Update README.md
This commit is contained in:
parent
9bcbe2f488
commit
85cb401bcf
18
README.md
18
README.md
|
@ -4,6 +4,24 @@ Tailing a file to Redis server
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
$ ./tail2redis -h
|
||||||
|
NAME:
|
||||||
|
tail2redis - Tailing a file to redis PubSub
|
||||||
|
|
||||||
|
USAGE:
|
||||||
|
tail2redis [global options] command [command options] [arguments...]
|
||||||
|
|
||||||
|
COMMANDS:
|
||||||
|
help, h Shows a list of commands or help for one command
|
||||||
|
|
||||||
|
GLOBAL OPTIONS:
|
||||||
|
--file value, -f value Choose a file (default: "/var/log/messages")
|
||||||
|
--host value, -H value Redis host (default: "localhost")
|
||||||
|
--port value, -P value Redis host (default: 6379)
|
||||||
|
--password value, -p value Redis password
|
||||||
|
--channel value, -c value Redis PubSub channel (default: "tail2redis")
|
||||||
|
--help, -h show help
|
||||||
|
|
||||||
$ ./tail2redis -H localhost -P 6379 -p [PASSWORD] -c [CHANNEL] -f /var/log/message
|
$ ./tail2redis -H localhost -P 6379 -p [PASSWORD] -c [CHANNEL] -f /var/log/message
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user