Re: Re: [squid-users] Squid logs analysing.

From: Indunil Jayasooriya <indunil75@dont-contact.us>
Date: Thu, 8 May 2008 14:34:15 +0530

> I downloaded and installed sarg on RHEL 5 but but not able to set it up.
>
> Have anybody successfully setup SARG on RHEL 5.
>
> Kindly let me know.

I have done it on Centos 4x

Pls see below. step by step guide.

SARG - Step by Step - CentOS

[root@worldnet ~]# yum install sarg
[root@worldnet ~]# cd /etc/httpd/conf.d/
[root@worldnet conf.d]# cp sarg.conf sarg.conf.orig
[root@worldnet conf.d]# cat sarg.conf
Alias /sarg /var/www/sarg

<Directory /var/www/sarg>
        DirectoryIndex index.html
        Order deny,allow
        Deny from all
        Allow from all
</Directory>

[root@worldnet conf.d]# /etc/init.d/httpd restart

Then,
[root@worldnet ~]# cd /var/www/sarg/
[root@worldnet sarg]# mkdir reports

Now, Edit words ONE-SHOT and One shot reports of index.html to reports
and reports (Every 30 minutes) as follows.

<td>reports</td>
                <td>reports (Every 30 minutes)</td>

Then,
[root@worldnet sarg]# cd /etc/sarg/
[root@worldnet sarg]# cp sarg.conf sarg.conf.orig
And edit, sarg.conf

Pls coment out below line as follows,
#output_dir /var/www/sarg/ONE-SHOT

and, Add below line.
output_dir /var/www/sarg/reports

Then, issue below command,
[root@worldnet sarg]# /usr/bin/sarg
SARG: Records in file: 1514, reading: 100.00%

Then, touch
[root@worldnet ~]# touch /var/www/sarg/sarg.cron
[root@worldnet ~]# cat /var/www/sarg/sarg.cron
#!/bin/sh
/usr/bin/sarg
cd /var/www/sarg/reports
rm -rf *.1

Then,
[root@worldnet ~]# cd /etc/cron.d
[root@worldnet cron.d]# touch sarg
[root@worldnet cron.d]# cat sarg
*/5 * * * * root /var/www/sarg/sarg.cron > /dev/null 2>&1
#*/30 * * * * root /var/www/sarg/sarg.cron > /dev/null 2>&1

Then, issue below commands.
[root@worldnet ~]# /etc/cron.daily/sarg
[root@worldnet ~]# /etc/cron.weekly/sarg
[root@worldnet ~]# /etc/cron.monthly/sarg

Now, Browse as follows.
http://192.168.101.25/sarg

That's it.

GOOD LUCK

>
>
>
> On Thu, 08 May 2008 Indunil Jayasooriya wrote :
>
>
> >Pls use sarg. It is good.
> >
> >
> >Anyway, Redhat 9 is quite old. Pls use Cenos 5x instead
> >
> >RPM can be got from below URL
> >
> >http://dag.wieers.com/rpm/packages/sarg/
> >
> >GOOD LUCK
> >
> >
> >On Thu, May 8, 2008 at 12:07 PM, Alexey Shakin <shakin@ilco.ru> wrote:
> > > Dear All!
> > >
> > > I am new in squid administrating and
> > > I have one rather simple question.
> > > It is - how can I analyse squid log files?
> > > I have installed Red Hat 9 with
> > > Squid 2.5 Stable from the distribution kit.
> > > The standart tool (webalizer) is not
> > > appropriate at all. What I need is
> > > a possibility to create a detailed, flexible
> > > report about all users' usage of the server.
> > > I'm sure it's a very common task for Squid
> > > admins. Why there is no tool in the
> > > distribution kit, I don't understand.
> > > So, what will you advise me?
> > >
> > >
> >
> >
> >
> >--
> >Thank you
> >Indunil Jayasooriya
>
>
>
>

-- 
Thank you
Indunil Jayasooriya
Received on Thu May 08 2008 - 09:04:23 MDT

This archive was generated by hypermail 2.2.0 : Tue May 13 2008 - 12:00:03 MDT