Created
February 14, 2017 14:57
-
-
Save petitchevalroux/92b0f4376fbda5e81a9b499df40051fc to your computer and use it in GitHub Desktop.
Get log event count order by count group by date dat
This file contains 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
find . -name "*.log" -type f -exec egrep "event" {} \; | egrep -o "^[a-Z]+\s+[0-9]+" | sort | uniq -c | sort -n -k1 | tac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment