awk '/ 404 | 500 /{print $7}' nginx.log | sed -e 's#[0-9]\{1,\}#*#g' | sort | uniq -c | sort -nr | head -5
awk '/ 404 | 500 /{print $9}' nginx.log | sort | uniq -c