web.onassar.com Archive

I can be reached at onassar@gmail.com.

For my open source work, check out github.com/onassar

Access Logs: Getting unique pages and frequency

View more posts

I ran the following which gave me all successful requests, sorted, uniqued, and then sorted according to their frequency. I then had it outputted to a file.

cat site.log | awk '{ if($9 == 200) { print $7 } }' | sort | uniq -c | sort -r > stats.log

Hope this helps.