Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.


Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.


Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.


Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Commands & Shells

Log Monitoring with Swatch

Submitted by on March 11, 2008 – 1:43 pm 4 Comments

Swatch is a Perl-based log monitoring tool that can match regular expressions and perform automated actions. The tool is useful for monitoring system log files in real time with an option to run external commands or to notify the admins in response to particular messages found in the logs.

Example configuration file: /etc/swatch.conf

watchfor /bvebw3/
echo bold
throttle 0:2:0,use=regex
bell 3,
exec “/var/adm/bin/ 800-555-1234”

Usage examples:

Scan a file and report any matches:

swatch –config-file=/etc/swatch.conf –examine=/var/log/messages

Continuously monitor a log file:

swatch –config-file=/etc/swatch.conf –tail=/var/log/messages

Print Friendly, PDF & Email


  • skillz says:

    Must be a game using color swatches,for the low to moderated functioning elderly and must have name of color on the color swatches.

  • Rassling Fundamentals says:

    Every time I open Adobe Illustrator, the color swatches are different. How can I open all of he color swatches and save them so that every time I open a new project the same swatches will be open? Can someone please help me????

  • sick_mick_101 says:

    We’re required to own swatches. Where can i find a store for that and i know its usually free

  • Elijah luv says:

    Normally, hardware stores will give you a color swatch wheel that you can use to find what paint colors you need.

    I’m sort of in a rush and need a color swatch wheel I can look at to find a specific color. Does anyone know of an online color wheel for mixing paint that would allow me to find what I need?

Leave a Reply

%d bloggers like this: