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:
# color:
# count-last:
# colorful snitch logs
tail -f /tmp/tinysnitch.log \
| sed -ur 's:(tcp|udp) [^ ]+ \->:\1:' \
| grep --line-buffered -v -e :51820$ -e :53$ \
| color tcp:blue udp:cyan dns:magenta icmp:yellow allow:green deny:red \
| count-last
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment