Awebvisit: Unterschied zwischen den Versionen

Aus Mikiwiki
Wechseln zu: Navigation, Suche
(Ubuntu 8.04 Hardy Heron)
(Verwendung)
Zeile 60: Zeile 60:
 
Awebvisit erwartet als Eingabe eine Logdatei und erzeugt daraus die HTML-Datei "awebvisitf.html".
 
Awebvisit erwartet als Eingabe eine Logdatei und erzeugt daraus die HTML-Datei "awebvisitf.html".
  
  $ <b>perl awebvisit.pl access.log.01</b>
+
  $ <b>perl awebvisit.pl access.log.1</b>
  
 
Konkret kann der Befehl wie folgt aus sehen:
 
Konkret kann der Befehl wie folgt aus sehen:
  
  $ <b>perl /usr/local/bin/awebvisit.pl /var/log/apache2/access.log.01</b>
+
  $ <b>perl /usr/local/bin/awebvisit.pl /var/log/apache2/access.log.1</b>
 +
Reading logfile entries...
 +
--> 0
 +
Read 688 entries from 26/Jul/2009:20:39:12 to 02/Aug/2009:11:33:13
 +
Extracting page and link information for 74 sessions...
 +
Found 74 sessions containing at least one page
 +
Calculating page statistics...
 +
Calculating time statistics...
 +
Calculating link statistics...
 +
Generating output files...
 +
f i c h s e 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
 +
Saving data to file './awebvisit.data'...
 +
Saving statistics to file './awebvisit.stat'...
 +
The aWebVisit reports can now be viewed at './awebvisitf.html'
 +
Generating web maps...
 +
The global web maps can now be viewed at './awebvisitm.html'
  
 
Die Ausgabedatei sieht beispielsweise wie folgt aus:
 
Die Ausgabedatei sieht beispielsweise wie folgt aus:
  
 
<pre class=wiki>
 
<pre class=wiki>
Missing configuration file (sherlog.conf) !
 
USING DEFAULT PARAMETERS
 
You should edit sherlog.conf to have best results.
 
  
2 visits today of which 2 from humans and  from robots
 
  
38 visitors bookmarked your site
 
 
Referers Top 10 of the day
 
      2 -
 
 
Errors Top 10 of the day
 
      37  404 /favicon.ico
 
      1  404 /favicon.ico coming from "http://localhost/wiki_privat/index.php/H
 
auptseite"
 
 
Pages Top 10 of the day
 
    101 *
 
      90 /wiki_privat/index.php/Hauptseite
 
      82 /wiki_privat/
 
      61 /wiki_privat/index.php
 
      38 /favicon.ico
 
      14 /wiki_privat/skins/common/wikibits.js
 
      12 /wiki_privat/index.php/Gesundheit
 
      6 /wiki_privat/index.php/Einkaufen
 
      5 /wiki_privat/index.php/Passw%C3%B6rter
 
      4 /wiki_privat/index.php/Fotos
 
 
Monitored pages
 
 
-------------- 127.0.0.1 ---------------
 
 
391 pages in 15 hour 54
 
 
Browser : Mozilla/5.0(X11;U;Linuxi686;de;rv:1.9.0.12)Gecko/2009070812Ubuntu/8.04(hardy)Firefox/3.0.12
 
 
 
26/Jul/2009:20:39:12 - /wiki_privat/
 
26/Jul/2009:20:39:12 - /wiki_privat/index.php/Hauptseite
 
26/Jul/2009:21:50:14 - /wiki_privat/
 
26/Jul/2009:21:50:15 - /wiki_privat/index.php/Hauptseite
 
26/Jul/2009:21:50:20 - /wiki_privat/index.php/Gesundheit
 
26/Jul/2009:23:58:32 - /wiki_privat/
 
26/Jul/2009:23:58:33 - /wiki_privat/index.php/Hauptseite
 
26/Jul/2009:23:58:37 - /wiki_privat/index.php/Personen
 
...
 
 
</pre>
 
</pre>
  

Version vom 7. August 2009, 21:09 Uhr

Das Perl-Skript Awebvisit (auch: aWebVisit) dient der Logdateianalyse eines Webservers, insbesondere der Analyse der Besucherwege. Das Skript liefert unter anderem folgende Informationen:

  • die häufigsten Einstiegsseiten einer Website
  • die häufigsten Ausstiegsseiten einer Website
  • die häufigsten Transitpunkte einer Website
  • die häufigstverwendeten Hit-and-Run-Punkte einer Website
  • die am häufigsten verfolgten internen Hyperlinks
  • die durchschnittliche Verweildauer jedes Besuchers
  • die durchschnittliche Zahl aufgerufener Seiten je Besuch
  • die durschnittliche Verweildauer auf einer Webseite
  • der Pfad des längsten Besuches (in Zeit doer Treffern)

Die Ergebnisse werden als HTML-Datei dargestellt.

Installation

Vorbedingung ist Perl 5.

Ubuntu 8.04 Hardy Heron

Herunterladen: http://mikespub.net/tools/aWebVisit/

$ wget http://mikespub.net/tools/aWebVisit/awebvist.zip
$ unzip -d awebvisit awebvist.zip && cd awebvisit
$ cp awebvisit.txt /usr/local/bin/awebvisit.pl

Zur Erzeugung von Grafiken wird ausserdem das Programm "Fly" benötigt. Dieses wiederum ist von GD abhängig, welches sich unter Ubuntu im Paket "libgd2-xpm-dev" findet.

Herunterladen: http://martin.gleeson.com/fly/

$ wget http://martin.gleeson.com/fly/dist/fly-2.0.1.tar.gz
$ tar xzf fly-2.0.1.tar.gz
$ cd fly-2.0.1

Trotz installiertem GD erzeugt "make" dann leider folgenden Fehler.

$ make
gcc -O -pedantic -Wall -I -L -o fly fly.o -lgd -lm -lz -lfreetype -lpng -ljpeg 
collect2: ld mit Signal 11 [Segmentation fault] beendet
/usr/bin/ld: i386:x86-64 architecture of input file `fly.o' is incompatible with i386 output
make: *** [fly] Fehler 1

Die Installation der älteren Version Fly 1.6.5 funktioniert dagegen problemlos:

$ wget http://p4room.mda.or.jp/fly/files/fly-1.6.5.tar.gz
$ tar xzf fly-1.6.5.tar.gz
$ cd fly-1.6.5
$ make
$ sudo mv fly /usr/local/bin

Konfiguration

Eine weitergehende Konfiguration muss im Perl-Skript selbst vorgenommen werden.

Sollen Grafiken mit Hilfe des Programms Fly erzeugt werden, so muss dafür die Variable "$flyprog" entsprechend belegt werden.

$flyprog '/usr/local/bin/fly'

Verwendung

Awebvisit erwartet als Eingabe eine Logdatei und erzeugt daraus die HTML-Datei "awebvisitf.html".

$ perl awebvisit.pl access.log.1

Konkret kann der Befehl wie folgt aus sehen:

$ perl /usr/local/bin/awebvisit.pl /var/log/apache2/access.log.1
Reading logfile entries...
--> 0
Read 688 entries from 26/Jul/2009:20:39:12 to 02/Aug/2009:11:33:13
Extracting page and link information for 74 sessions...
Found 74 sessions containing at least one page
Calculating page statistics...
Calculating time statistics...
Calculating link statistics...
Generating output files...
f i c h s e 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 
Saving data to file './awebvisit.data'...
Saving statistics to file './awebvisit.stat'...
The aWebVisit reports can now be viewed at './awebvisitf.html'
Generating web maps...
The global web maps can now be viewed at './awebvisitm.html'

Die Ausgabedatei sieht beispielsweise wie folgt aus:



Weblinks

Vorlage:Weblinks1