i must create some statistics out of a WWW access log database, but i found out that there are some redirect loops after a login if the user has disabled cookies. So there are 10-1000 mostly identical rows like the following:
...
/login?redirect=/app - 200 - 123.123.123.123 - 2014-01-01 10:00:00
/app - 403 - 123.123.123.123 - 2014-01-01 10:00:00
/login?redirect=/app - 200 - 123.123.123.123 - 2014-01-01 10:00:00
/app - 403 - 123.123.123.123 - 2014-01-01 10:00:01
...
Is there a way to detect unusal count grouped by the ip/url in an interval? I think i need to select all counts for each minute an detect a spike and ignore that... Does anyone had the same difficulties?
lag
andlead
, but I don't think MySQL has these.