Find all Fatals and Erros in a log file with grep, sed and uniq

Using grep, sed and unique to get a list of all errors in a log file.
created by on 2013-11-07

Example

cat www-error.log | grep -E "PHP (Fatal|Error)" | sed -r 's/.+PHP Fatal error: //' | uniq
Tags:
Fork allmark on GitHub