Improved statistics on ip (#3332)
This commit is contained in:
parent
88c62dc13d
commit
415637f4f8
@ -56,10 +56,10 @@ generateReport()
|
||||
httpRequestCount=$(zgrep "$monthEnglish" /var/log/apache2/date.chapril.org/date.chapril.org-access.log*|grep -c "$year")
|
||||
echo "Nombre total de requêtes http = $httpRequestCount"
|
||||
|
||||
trueHttpRequestCount=$(zgrep "$monthEnglish" /var/log/apache2/date.chapril.org/date.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -c -v check)
|
||||
trueHttpRequestCount=$(zgrep "$monthEnglish" /var/log/apache2/date.chapril.org/date.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -c -v check_http)
|
||||
echo "Nombre de vraies requêtes http = $trueHttpRequestCount"
|
||||
|
||||
botRequestCount=$(zgrep "$monthEnglish" /var/log/apache2/date.chapril.org/date.chapril.org-access.log*|grep "$year"|grep -i bot|grep -c -v check)
|
||||
botRequestCount=$(zgrep "$monthEnglish" /var/log/apache2/date.chapril.org/date.chapril.org-access.log*|grep "$year"|grep -i bot|grep -c -v check_http)
|
||||
echo "Nombre de requêtes bot = $botRequestCount"
|
||||
|
||||
errorRequestCount=$(zgrep "$monthEnglish" /var/log/apache2/date.chapril.org/date.chapril.org-error.log*|grep -c "$year")
|
||||
@ -74,11 +74,16 @@ generateReport()
|
||||
ipv6Count=$(zgrep -h "$monthEnglish" /var/log/apache2/date.chapril.org/date.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -v check_http|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 ayant visité le service = $ipv6Count"
|
||||
|
||||
echo "Nombre total d'ip ayant visité le service = $((ipv4Count+ipv6Count))"
|
||||
|
||||
ipv4UserCount=$(zgrep -h "$monthEnglish" /var/log/apache2/date.chapril.org/date.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -v check_http|grep '^\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\} '|grep -v "GET \(/.git/|/img/|/i18n/|/js/|/fonts/|/css/\|/images/\| /\)"|grep -v "HTTP/1.0\" 404"|grep -v "HEAD"|grep -v "GET /"|cut -d' ' -f1|sort|uniq|wc -l )
|
||||
echo "Nombre d'ipv4 utilisatrices = $ipv4UserCount"
|
||||
|
||||
ipv6UserCount=$(zgrep -h "$monthEnglish" /var/log/apache2/date.chapril.org/date.chapril.org-access.log*|grep "$year"|grep -vi bot|grep -v check_http|grep '^\([0-9a-f]\{0,4\}:\)\{2,7\}\([0-9a-f]\{0,4\}\)\{1\} '|grep -v "::1 "|grep -v "GET \(/.git/|/img/|/i18n/|/js/|/fonts/|/css/\|/images/\| /\)"|grep -v "HTTP/1.0\" 404"|grep -v "HEAD"|grep -v "GET /"|cut -d' ' -f1|sort|uniq|wc -l )
|
||||
echo "Nombre d'ipv6 utilisatrices = $ipv6UserCount"
|
||||
|
||||
echo "Nombre total d'ip ayant utilisées le service = $((ipv4UserCount+ipv6UserCount))"
|
||||
|
||||
echo -e "\n"
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user