From 02750c9e3aeb9b3d5e5d83351ea3cc9b46505a07 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Sun, 6 Feb 2011 18:31:27 +0100 Subject: [PATCH] Added some info on how to grep for download stats etc (only interesting to @rsms) --- admin/greping-for-stats.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 admin/greping-for-stats.sh diff --git a/admin/greping-for-stats.sh b/admin/greping-for-stats.sh new file mode 100644 index 0000000..d2df2bd --- /dev/null +++ b/admin/greping-for-stats.sh @@ -0,0 +1,9 @@ +# Number of downloads: +zgrep -E --no-filename 'kodapp\.com.+/download/' /var/log/lighttpd/access.* | wc -l + +# All accesses to the appcast.xml file: +zgrep -E --no-filename 'kodapp\.com.+/appcast\.xml' /var/log/lighttpd/access.* > kod-appcast.log + +# Number of 0.0.3 installations (counting unique IPs): +grep 'Kod/0.0.3' kod-appcast2.log | awk '{print $1}' | sort -u | wc -l +