fix updating of Twitter handle
[mygpo.git] / bin / view-usage.sh
blobf8bf4f0b2882bcfe971e64f161851f005fb3dd66
1 #!/bin/bash
2 # When run on a CouchDB log file, determines the number of
3 # requests to individual views
4 # Usage: ./view-usage.sh /var/log/couchdb/couch.log
6 LOGFILE=$1
8 cat $LOGFILE | awk '{print $13;}' | cut -f1 -d"?" | awk '{count[$1]++}END{for(j in count) print count[j],j}' | sort -n -r | head -n 10