A simple URL Analysis tools
1. Description:
Filter out given quantity n of slowest response time URL ( In such format:
<URL>, <Response Time>, <Response Status>
)
2. Requirement:
- Only considering
GET
method and status with200
URL - Ignore URL ending with
".gif"
- Result should be decreasing
- Assuming that Every Request strictly follows the rules:
- URL :
({GET/POST/PUT/DELETE} [url])//and url should begin with "/"
- Response Time:
(minimum 0.001s, no space allowed between number and unit)
- Response Status:
(only have one number)
- URL :
3. Environment
- Ubuntu 16.04
- Go 1.11
4. Procedure to run
- Simply type following in your CLI:
go run main.go
- Test with log file
access.log
- Can modify path/filename and required quantity in
run.conf