Does any one know a Perl regular expresson to ignore specific string from a log file.
For example i want to use this simple unix command using perl regular expression
egrep -i -n "error|fatal" logfile.log |\egrep -v "user not found"
i.e. it should ignore log file entry "Error user not found" but at the same time if log file contains "error script fails" it should detect "error".
Thanks in advance.