Mind Dump, Tech And Life Blog
written by Ivan Alenko
published under license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)copy! share!
posted in category Systems Software / Nginx & Apache
posted at 24. Aug '21

Howto Find Error Codes in access_log.log

Useful for quick grepping through access log. This one finds all 4xx errors except 404 and 401.

cat access_log.log | grep -P "\" 4\d\d " | grep -v 404 | grep -v 401

Add Comment