We're using HP SiteScope system at work to monitor logs and get alerts when a special string or combination of strings is caught.
There is one field where the regular expression that catches the strings is placed, however I want to exclude some of the results which we catch with the reg exp. For example:
grep -E '(GOOD_STRING1|GOOD_STRING2)' | grep -v BAD_STRING
needs to be transformed into a single reg exp. Something like this:
grep -E '(GOOD_STRING1|GOOD_STRING2)!BAD_STRING)'
Is that possible?