The link that John just sent out contains an example of how to do this. http://www.dachsug.ch/wiki/index.php/Alarming
Read the section on "How to check for the presence of a file" Just modify the bash script to include your grep command. Also, I would recommend a expression grep, it should be more efficient. egrep 'ABC|DEF|GHIJKL' Also, I believe you can use regular expressions in SystemEdge log file rules. tony From: Robinson, Peter A. [mailto:[email protected]] Sent: Thursday, February 12, 2009 1:32 PM To: spectrum Subject: [spectrum] SYSTEM EDGE Log Watchers User Group, I am trying to determine if it is possible to have multiple search criteria met before a match is determined. Here is a cmd line filter example: grep ABC | grep DEF | grep GHIJKL if all three exist in a line within a log file generate a trap. There is interest in setting up a log watcher to only generate a trap when an entry matches 3 different criteria as shown above. Is this possible? Thank you, Peter Robinson * --To unsubscribe from spectrum, send email to [email protected]<mailto:[email protected]> with the body: unsubscribe spectrum [email protected] ________________________________ The information in this message may be proprietary and/or confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify First Data immediately by replying to this message and deleting it from your computer. * --To unsubscribe from spectrum, send email to [email protected]<mailto:[email protected]> with the body: unsubscribe spectrum [email protected] ________________________________ This electronic message transmission contains information from Black Hills Corporation, its affiliate or subsidiary, which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, be aware the disclosure, copying, distribution or use of the contents of this information is prohibited. If you received this electronic transmission in error, please reply to sender immediately; then delete this message without copying it or further reading. --- To unsubscribe from spectrum, send email to [email protected] with the body: unsubscribe spectrum [email protected]
