Skip to content

Instantly share code, notes, and snippets.

@ScrambledBits
Last active February 1, 2016 19:39
Show Gist options
  • Save ScrambledBits/6462f238f44558607a4f to your computer and use it in GitHub Desktop.
Save ScrambledBits/6462f238f44558607a4f to your computer and use it in GitHub Desktop.
This snippet finds all log files under /var/log and displays them in realtime with color highlight. CCZE must be installed.
#!/bin/bash
find /var/log -type f -iregex '.*[^\.][^0-9]+$' -not -iregex '.*gz$' 2> /dev/null | xargs tail -n0 -f | ccze -A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment