Consider that the access logs are of this format:
log_format detailed '$remote_addr $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for" ' '$request_length $request_time $upstream_connect_time $upstream_header_time $upstream_response_time';
How can I have a new log file that contains only requests that took more than 5 seconds?