Rate limit messages from stdin. (keep or drop those exceeding the limit)
E.g. when using mattertee to send output to mattermost, you can now just pipe it through rl so that your channels aren't being flooded.
Binaries can be found [here] (https://github.com/42wim/rl/releases/)
Go 1.6+ is required. Make sure you have Go properly installed, including setting up your [GOPATH] (https://golang.org/doc/code.html#GOPATH )
cd $GOPATH
go get github.com/42wim/rl
You should now have rl binary in the bin directory:
$ ls bin/
rl
Usage of ./rl:
-k keep the messages instead of dropping them
-r int
limit to r messages per second (drops those exceeding the limit) (default 5)
(the number of dropped messages will be sent to stderr, when not using the -k switch)
journalctl -f | rl -k -r 5