Let’s say you want to see the requests Apache is upset about. How do you filter the logs to see every entry that doesn’t have a status code in the 200s? Depending on your Apache LogFormat, you could try…
sudo grep -E ‘\” [1345][01235][0-9] [[:digit:]]{1,8} \”‘ /var/log/apache2/access.log