Created
August 17, 2012 14:16
-
-
Save coodix/3379015 to your computer and use it in GitHub Desktop.
Slow log parser
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
cat /var/log/php-fpm/php-slow.log | \ | |
grep -v "/lib/vendor\|/lib/.*Filter\|cache/frontend\|+++ dump failed\|pool www\|script_filename" | \ | |
cut -c 22- | grep "^$" -A 1 | grep "/" | \ | |
grep `ls /srv/www/prod/releases/ | tac | head -1` | \ | |
sort | uniq -c | sort -n | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment