Tailing a file to Redis server (PubSub)
Go to file
2023-02-22 20:15:27 +09:00
go.mod Create go.mod 2023-02-22 20:07:28 +09:00
go.sum Create go.sum 2023-02-22 20:07:52 +09:00
LICENSE Create LICENSE 2023-02-22 20:12:49 +09:00
main.go Create main.go 2023-02-22 20:06:59 +09:00
README.md Update README.md 2023-02-22 20:15:27 +09:00

tail2redis

Tailing a file to Redis server (PubSub)

Example

$ ./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

Contact me