Blame


1 0b40c15e 2023-06-15 o #!/usr/bin/awk -f
2 0b40c15e 2023-06-15 o
3 0b40c15e 2023-06-15 o # skip requests with bad method
4 2be581dc 2023-06-15 o /<UNKNOWN>/ {
5 0b40c15e 2023-06-15 o next
6 0b40c15e 2023-06-15 o }
7 0b40c15e 2023-06-15 o
8 0b40c15e 2023-06-15 o {
9 0b40c15e 2023-06-15 o host = $1
10 0b40c15e 2023-06-15 o path = host $8
11 0b40c15e 2023-06-15 o hits[path]++
12 0b40c15e 2023-06-15 o }
13 0b40c15e 2023-06-15 o
14 0b40c15e 2023-06-15 o END {
15 0b40c15e 2023-06-15 o for (path in hits) {
16 0b40c15e 2023-06-15 o printf "%d %s\n", hits[path], path
17 0b40c15e 2023-06-15 o }
18 0b40c15e 2023-06-15 o }