Log analysers: Webmin & sarg

Posted by Md. Mahidul Hasan on 3:17 AM with No comments
Webmin & SARG installation:

Webmin installation: 
root@ns1:~# vim /etc/apt/sources.list
deb http://download.webmin.com/download/repository sarge contrib     //add this line
root@ns1:~# cd /root
root@ns1:~# wget http://www.webmin.com/jcameron-key.asc
root@ns1:~# apt-key add jcameron-key.asc
root@ns1:~# apt-get update
root@ns1:~# apt-get install webmin
root@ns1:~# apt-get install quota quota-tools

You should now be able to login to Webmin at the URL http://localhost:10000/.
Or if accessing it remotely, http://your_ip_address:10000/.

Alternative way:
you can also install webmin from deb file.
root@ns1:~# wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb
root@ns1:~# sudo dpkg -i webmin_1.510-2_all.deb

Open your web browser and enter the following address:
https://server_ip_address:10000/


Sarg installation
root@ns1:~# apt-get install sarg
We should now be able to login to sarg at the URL https://192.168.200.89/squid-reports/

Creating auto genarating report in a espasific time:
root@ns1:~# contrib mmhhddMMWW sarg -l/var/log/squid/access.log

If we want to use sarg from Webmin then:
sarver> Squid Report Generator> Generate report> select FILE/PERIOD> select ip