Created
November 4, 2016 20:24
-
-
Save asigatchov/12a48a10a9e28c5296d9df71ec695cec to your computer and use it in GitHub Desktop.
Поиск медленных ip клиетнов
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
SELECT | |
floor(avg(resp_time), 2) AS avg_time, | |
ip | |
FROM access_log | |
WHERE event_date = '2016-11-01' | |
GROUP BY ip | |
ORDER BY avg_time DESC | |
LIMIT 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment