Fedora 14
Sponsored Link

Apache access log analyzer - Visitors2010/11/06

  Install Apache log analizer, Visitors.

[1] Install Visitors
[root@www03 ~]#
yum -y install graphviz


[root@www03 ~]#
wget wget http://www.hping.org/visitors/visitors-0.7.tar.gz


[root@www03 ~]#
tar zxvf visitors-0.7.tar.gz

[root@www03 ~]#
cd visitors_0.7

[root@www03 visitors_0.7]#
make

[root@www03 visitors_0.7]#
cp visitors /usr/local/bin/

[root@www03 visitors_0.7]#
[root@www03 ~]#
mkdir /var/www/html/visitors

[root@www03 ~]#
vi /etc/httpd/conf.d/visitors.conf


# create new

<Location /visitors>
    Order deny,allow
    Deny from all
    Allow from 10.0.0.0/24
# IP address you allow

</Location>


[root@www03 ~]#
/etc/rc.d/init.d/httpd restart

Stopping httpd:
[  OK  ]

Starting httpd:
[  OK  ]


# generate common reports

[root@www03 ~]#
visitors -A /var/log/httpd/access_log -o html > /var/www/html/visitors/index.html

--
56 lines processed in 1 seconds
0 invalid lines, 0 blacklisted referers

# generate page tour reports

[root@www03 ~]#
visitors -A -m 30 /var/log/httpd/access_log -o html --trails --prefix http://www03.srv.world > /var/www/html/visitors/trails.html

--
56 lines processed in 1 seconds
0 invalid lines, 0 blacklisted referers

# generate page tour image

[root@www03 ~]#
visitors /var/log/httpd/access_log --prefix http://www03.srv.world -V > /var/www/html/visitors/graph.dot

--
56 lines processed in 1 seconds
0 invalid lines, 0 blacklisted referers
[root@www03 ~]#
dot -Tpng /var/www/html/visitors/graph.dot > /var/www/html/visitors/graph.png
  Access to 'http://(your server's name or IP address)/visitors/', then following screeen is shown and it's possible to see httpd's log.
Matched Content