Created
February 21, 2019 07:55
-
-
Save Bonno/28a7b11f12c882bdd18ecb829c9080e6 to your computer and use it in GitHub Desktop.
Sort and count errors from magento or apache error log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -e "s/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}T[0-9:+-]* //g" system.log | grep ERR | sort -n | uniq -cd | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment