Searching through IT logs can be boring and tedious. With the swatch (Simple WATCHer) Linux utility, automate actions based on matching logging conditions.
Written by Max Hetrick
Awhile back, I showed you how to take advantage of setting up a centralized remote logging facility for Linux. Centralized logging gives you one location to head for when trouble arises. Using the Linux tool swatch, let's take logging one step further by automating alerts or actions based on conditions matching regular expressions.
Written by Chris Smith
For those of us fortunate enough to have had television in the early 1950s, we might remember The Bob Cummings Show, in which dashing young Hollywood photographer "Bob Collins" attempts to romance every attractive starlet in town. Bob's magnetic sign in his photo darkroom, in which he is depicted smiling with open arms as his current bevy of sweethearts is displayed racing toward him on different tracks along the board, reminds me of today's software vendors working hard to earn an embrace by programmers.
Who hasn't had a "file full" message in QSYSOPR? It's about as common as a cold. But what do you do with the message? Always the same reaction? What about the QSYSOPR job end abnormally and normally messages, CPF1240 and CPF1241? They're nice to know for certain jobs, but for most jobs, you don't care. When a certain job ends, do you want to execute a command, restart the job, notify someone, or do something else?