Webalizer

Iš Studento Vikis.

Peršokti į: navigaciją, paiešką

Webalizer yra serverio apkrovimo stebėjimo įrankis, analizuojantis saityno serverio darbo žurnalus.

The Webalizer was designed to scan web server log files in various formats and produce usage statistics in HTML format for viewing through a browser. The Webalizer produces yearly, monthly, daily and hourly statistics. In the monthly reports, various statistics may be produced to show overall usage, usage by day and hour, usage by visiting sites, URLs, user agents (browsers), referrers and country. The Webalizer is highly configurable by use of either command line options or a configuration file, allowing the program to be tailored to individual needs easily.

Common misspellings: Webaziler, Webaliser, Webelizer.

Turinys

Webalizer Xtended

Tai papildyta W. versija, pateikianti klaidingų kreipinių suvestinę, patobulintą valstybių sąrašą ir kt. Pvz.: shodor.org.

Webalizer instaliavimas

Debian, Ubuntu etc. sistemose - terminalo komanda;

sudo apt-get install webalizer

Webalizer derinimas

Webalizer pateikiami rezultatai priklauso nuo to, kaip serveris įrašo žurnalą. Tai nustatoma faile /etc/apache2/apache2.conf

Norint, kad būtų rodomi ne lankytojų IP adresai, bet jų serverių vardai, nustatoma taip:

HostnameLookups On

By default webalizer check in the log:

LogFile /var/log/apache2/access.log.1

In /etc/webalizer.conf you can change to

LogFile /var/log/apache2/access.log

Test webalizer:

sudo webalizer

If you get a warning like warning: Truncating ...

It is because you did not put the hostnameLookup. If afterward, you get this message, it can be because you are attacked by a virus...

Run webalizer as a cronjob. This has to be run as root: Edit the root cronjobs by running the command:

sudo crontab -e

and add the line:

0 * * * * /usr/bin/webalizer access.log
0 7 * * * /usr/bin/webalizer access.log.1

With first line, every hour webalizer is run analysing current access.log
With second line, every day 7:00 webalizer is run analysing access.log.1

Or set webalizer to analyse access.log.1 every time after access.log is renamed to access.log.1

Naudingi parametrai

Norint matyti daugiau nei vienerių metų suvestines, naudinga pakeisti parametrų IndexMonths ir GraphMonths reikšmes:

IndexMonths. Specify how many months should be displayed in the main index (yearly summary) table. Default is 12 months. Can be set to anything between 12 and 120 months (1 to 10 years).

IndexMonths 120 (webalizer.conf)
webalizer -K 120 (command line)

GraphMonths. Specify how many months should be displayed in the main index (yearly summary) graph. Default is 12 months. Can be set to anything between 12 and 72 months (1 to 6 years).

GraphMonths 72 (webalizer.conf)
webalizer -k 72 (command line)

webalizer-init.sh

Instaliavus webalizer tokiu skriptu galima apdoroti Apache2 žurnalo archyvą:

#!/bin/sh
echo Webalizer nuskaito Apache2 žurnalo failus
for (( NR=52; NR > 1; NR-- ))
do
   echo "webalizer /var/log/apache2/access.log.${NR}.gz"
   webalizer /var/log/apache2/access.log.${NR}.gz
done
echo "webalizer /var/log/apache2/access.log.${NR}"
webalizer /var/log/apache2/access.log.${NR}
echo "Atlikta"

Webalizer naudojimo pavyzdžiai

Kelių serverių lankomumo Webalizer ataskaitos: [1], [2], [3], [4], [5], [6]. Daugiau pavyzdžių: seo.mitumba.net/webalizer.php

Nuorodos

Asmeniniai įrankiai
Google AdSense