Monitoring log, but ignoring valid entries
Hi,
I deal with servers that print a lot of good and useless information. I want to be able to periodically search the daily log for something out of the ordinary. Whats the best way to feed a list of log entries into some kind of search mechanism as a list of IGNORE these, but give me everything else? Thanks! |
Quote:
grep -iv 'not this' log.txt | grep -iv 'nor that' | grep -iv 'nor this either' Add as many as you need to exclude by the text you enter between the single quotes, or use double quotes if you want your exclusions by a regex See man grep for details |
Quote:
|
My problem is solved. Swatch was the way to go. Thanks
|
All times are GMT -5. The time now is 04:54 PM. |