Log Analyzers

Swatch – pattern-based log monitoring and notifications

Swatch (Simple Log Watcher) is a command-line utility for monitoring system and application logs and responding to messages that match configured patterns.

The application was developed for monitoring syslog output but can be used with other text-based log sources. It examines incoming messages using regular expressions and performs actions when matching entries are detected.

Swatch is primarily an event-monitoring tool rather than a statistical log analyzer. It is useful when administrators need immediate notification of particular messages or want to run a command when a specific event appears in a log.

Its behaviour is defined through configuration rules that specify the patterns to match and the actions to perform.

This is free and open source software.

Key Features

  • Monitors system and application logs for specified message patterns.
  • Uses regular expressions to match incoming log entries.
  • Supports multiple monitoring rules in a configuration file.
  • Allows different actions to be associated with different matching patterns.
  • Highlights matching messages using configurable colours.
  • Supports bold, underline and reverse-video terminal attributes.
  • Can send email notifications when selected messages are detected.
  • Executes external commands in response to matching log entries.
  • Supports ignoring messages that match selected patterns.
  • Can operate continuously in the background.
  • Provides a configurable mechanism for watching operational and security-related events.

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

Learn Perl with our recommended free books and free tutorials.


Related Software

Command-Line Log Filters, Highlighters and Watchers
tailspinHighlights log output automatically without predefined log formats
hlFilters, searches and highlights structured logs in the terminal
humanlogFormats structured logs into readable, colourised terminal output
fblogFormats and filters JSON logs using configurable fields and Lua expressions
LogalizeCustomisable log colouriser with regex patterns and themes
swatchMonitors log files and triggers actions when specified patterns match

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
reqlogSearch, track and stream logs

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted