Bash script to sort an access log for the slowest response times in x minutes

I need help with sorting a log file looking like the following:

IP - User [16/Jan/2020:09:40:11 +0100] “GET URL HTTP/1.1” 200 1276 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0” 2540

I want to see the n slowest requests from the last x minutes.
How can I do that?
I’m rather new to bash scripting and would appreciate any help.

Is that a web server log file? If so it won’t provide any useful information. Slowest response can be measured using client browser dev tools and server side log mysql logs for slow queries.


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki