swatchdog
Log file viewer with regexp matching, highlighting & hooks
Install
- All systems
-
curl cmd.cat/swatchdog.sh
- Debian
-
apt-get install swatch
- Ubuntu
-
apt-get install swatch
- Alpine
-
apk add swatch
- Kali Linux
-
apt-get install swatch
- Fedora
-
dnf install swatch
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install swatch
- Raspbian
-
apt-get install swatch
- Dockerfile
- dockerfile.run/swatchdog
- Docker
-
docker run cmd.cat/swatchdog swatchdog
powered by Commando
swatch
Log file viewer with regexp matching, highlighting & hooks
Swatch is designed to monitor system activity. It reads a configuration file which contains pattern(s) to look for and action(s) to perform when each pattern is found. A typical action is echoing the matched line in a variety of colours and formats including reverse video, bold, underline, and normal, which swatch knows how to do internally. Other actions include sending mail or executing an arbitrary program on the line. Swatch is written in Perl and uses Perl regular expressions for line matching.