From Fedora Project Wiki
(Add more methods courtesy of Marvelous Mike) |
|||
Line 23: | Line 23: | ||
= Fedoraproject.org Visits = | = Fedoraproject.org Visits = | ||
Go [http://lockbox.fedora.phx.redhat.com/awstats/ here]. | Go [http://lockbox.fedora.phx.redhat.com/awstats/ here]. Also, for example: | ||
for month in `seq -w 9 10`; do echo -n "$month "; (bzcat \ | |||
/var/log/hosts/proxy[1-5]/2008/$month/*/http/fedoraproject.org-access.* \ | |||
2> /dev/null || cat \ | |||
/var/log/hosts/proxy[1-5]/2008/$month/*/http/fedoraproject.org-access.*) | \ | |||
awk '{print $1 }' | sort | uniq | wc -l ; done | |||
= Wiki Edits = | = Wiki Edits = | ||
for month in `seq -w 5 10`; do echo -n "$month "; (bzgrep -hce 'POST.*edit' \ | |||
/var/log/hosts/proxy[1-5]/2008/$month/*/http/fedoraproject.org-access.* \ | |||
2> /dev/null || grep -hce 'POST.*edit' \ | |||
/var/log/hosts/proxy[1-5]/2008/$month/*/http/fedoraproject.org-access.*) | \ | |||
awk '{ s+=$1 } END { print "Total: "s}'; done |
Revision as of 22:36, 17 November 2008
These are the command line recipes for the metrics shown on the Statistics page.
Yum
New Way
SSH to log1 and:
cat /srv/www/fedoraUsage/updates-released-f41
Old Way (deprecated)
SSH to lockbox and:
egrep 'repo=updates-released-f9' \ /var/log/httpd/archives/proxy*/mirrors.fedoraproject.org-access.log.<date_range> | \ grep '\" 200 ' | awk '{print $1}' | awk -F : '{print $2}' | \ sort | uniq | wc -l > ~/f9-yum-<end_date>.txt
Direct Downloads
SSH to log1 and:
egrep 'Fedora-41.*\.iso' \ /var/log/hosts/proxy*/YYYY/MM/DD/http/download.fedoraproject.org-access.log | \ grep '\" 302 ' | awk '{print $1}' | awk -F : '{print $2}' | sort | uniq | wc -l \ > ~/f41-dl-$(date +%Y%m%d).txt
Fedoraproject.org Visits
Go here. Also, for example:
for month in seq -w 9 10
; do echo -n "$month "; (bzcat \
/var/log/hosts/proxy[1-5]/2008/$month/*/http/fedoraproject.org-access.* \
2> /dev/null || cat \
/var/log/hosts/proxy[1-5]/2008/$month/*/http/fedoraproject.org-access.*) | \
awk '{print $1 }' | sort | uniq | wc -l ; done
Wiki Edits
for month in seq -w 5 10
; do echo -n "$month "; (bzgrep -hce 'POST.*edit' \
/var/log/hosts/proxy[1-5]/2008/$month/*/http/fedoraproject.org-access.* \
2> /dev/null || grep -hce 'POST.*edit' \
/var/log/hosts/proxy[1-5]/2008/$month/*/http/fedoraproject.org-access.*) | \
awk '{ s+=$1 } END { print "Total: "s}'; done