ajout du nombre d'ip utilisatrices #4230
This commit is contained in:
parent
cb145dbcec
commit
48d648331c
@ -56,10 +56,18 @@ generateReport()
|
||||
|
||||
echo "Nombre total d'ip ayant visité le service = $((ipv4Count+ipv6Count))"
|
||||
|
||||
uploadCount=$(zgrep -h "$monthEnglish" /var/log/apache2/drop.chapril.org/drop.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -v check_http|grep '^\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\} '|grep "\(POST /api/info/\)"|grep -v "HTTP/1.0\" 404"|grep -v "HEAD"|cut -d' ' -f1|sort|uniq|wc -l )
|
||||
ipv4UserCount=$(zgrep -h "$monthEnglish" /var/log/apache2/drop.chapril.org/drop.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -v check_http|grep "\(POST /api/info/\)\|\(GET /api/download/\)"|grep '^\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\} '|cut -d' ' -f1|sort|uniq |wc -l)
|
||||
echo "Nombre d'ipv4 utilisatrices = $ipv4UserCount"
|
||||
|
||||
ipv6UserCount=$(zgrep -h "$monthEnglish" /var/log/apache2/drop.chapril.org/drop.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -v check_http|grep "\(POST /api/info/\)\|\(GET /api/download/\)"|grep '^\([0-9a-f]\{0,4\}:\)\{2,7\}\([0-9a-f]\{0,4\}\)\{1\} '|cut -d' ' -f1|sort|uniq |wc -l)
|
||||
echo "Nombre d'ipv6 utilisatrices = $ipv6UserCount"
|
||||
|
||||
echo "Nombre total d'ip utilisatrices = $((ipv4UserCount+ipv6UserCount))"
|
||||
|
||||
uploadCount=$(zgrep -h "$monthEnglish" /var/log/apache2/drop.chapril.org/drop.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -v check_http|grep "\(POST /api/info/\)"|grep -v "HTTP/1.0\" 404"|grep -v "HEAD"|cut -d' ' -f1|sort|uniq|wc -l )
|
||||
echo "Nombre de téléversements = $uploadCount"
|
||||
|
||||
downloadCount=$(zgrep -h "$monthEnglish" /var/log/apache2/drop.chapril.org/drop.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -v check_http|grep '^\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\} '|grep "\(GET /api/download/\)"|grep -v "HTTP/1.0\" 404"|grep -v "HEAD"|cut -d' ' -f1|sort|uniq|wc -l )
|
||||
downloadCount=$(zgrep -h "$monthEnglish" /var/log/apache2/drop.chapril.org/drop.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -v check_http|grep "\(GET /api/download/\)"|grep -v "HTTP/1.0\" 404"|grep -v "HEAD"|cut -d' ' -f1|sort|uniq|wc -l )
|
||||
echo "Nombre de téléchargements = $downloadCount"
|
||||
|
||||
echo -e "\n"
|
||||
|
Loading…
Reference in New Issue
Block a user