Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
a small and colorful format to tail tinysnitch logs
# tinysnitch:
# pys:
# color:
# colorful snitch logs
tail -f /tmp/tinysnitchd.log \
| grep --line-buffered -e allow -e deny \
| grep --line-buffered -v \
| pys 'i.split("INFO")[-1]' \
| stdbuf -oL sed -E 's:\|.+>::' \
| stdbuf -oL uniq \
| color tcp:blue udp:cyan \
| ljust=5 color allow:green deny:red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment