Log Analyzers

swatch – the “simple watchdog”

Swatch (Simple Log Watcher) is designed to monitor system activity. Swatch started out as the “simple watchdog” for actively monitoring log files produced by UNIX’s syslog facility. It has since evolved into a handy utility that can monitor just about any type of log.

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. In order for Swatch to be useful, it requires a configuration file which contains pattern(s) to look for and action(s) to perform when each pattern is found.

Key Features

  • Simple to configure.
  • Regular expression matching.
  • Highlighting.
  • Hooks.
  • Send e-mails based on matching log strings.
  • Execute in the background.

Website: sourceforge.net/projects/swatch
Support: Forum
Developer: Todd Atkins
License: GNU General Public License v2.0

Learn Perl with our recommended free books and free tutorials.


Related Software

LogFile Viewers
lnavCurses-based utility for viewing and analyzing log files.
tailspinTerminal log file highlighter designed for inspecting log output in the shell
journalctlQuery and display messages from the journal
hlInspect structured logs from the terminal
NerdlogRemote-first terminal log viewer
lazyjournalInspect logs from multiple sources
KSystemLogSystem log viewer for KDE
LogdyLightweight log viewer that works just like grep, awk, sed, or jq
humanlogReads logs from stdin and prints them back to stdout, but prettier.
toolongView, tail, merge, and search log files
XlogmasterGTK+ based program to keep track of logfiles and devices
QJournalctlGraphical User Interface for systemd’s journalctl
logrifleDesigned to "rifle through" large logfiles
Gnome-logsView and search logs with this graphical utility
frontailStream logs to your web browser
nlessPager for exploring structured and semi-structured data
gloggQt graphical log explorer
ChipmunkFast logfile viewer that can deal with huge logfiles (>10 GB)
SEEInspect logs from systemd services
MultiTailView multiple logfiles windowed on the console
LogriaLog aggregation tool
loganaWork efficiently with very large log files, including multi-GB logs
QLogExplorerQt-based tool for exploring log files
GrafitoSimple, self-contained web-based log viewer for journalctl
swatchLogfile viewer with regexp matching, highlighting & hooks
logmaster-gtk-dLog viewer for Linux built with GTK and D
LogLensLinux equivalent to Windows Event Viewer

Read our verdict in the software roundup.

Console Log File Analyzers
journalctlQuery and display messages from the journal
lnavCurses-based tool for viewing and analyzing log files
GonzoGo based TUI for log analysis
angle-grinderSlice and dice logs
MultiTailMonitor logfiles and command output in multiple windows
ChipmunkFast logfile viewer that can deal with huge logfiles (>10 GB)
TWSLAWork with large log sets without deploying a heavier log management stack
SwatchSimple Log Watcher is a useful tool to monitor just about any type of log

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments