There are two ways to do it.

1> Hack squid code to discard logging entries like that...

2> write a simple perl scrist which will parse your access.log and remove
entries which you don't like..



-- 

Best Regs,
Masood Ahmad Shah
System Administrator

^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
|   * * * * * * * * * * * * * * * * * * * * * * * *
|   Fibre Net (Pvt) Ltd. Lahore, Pakistan
|   Tel: +92-42-6677024
|   Mobile: +92-300-4277367
|   http://www.fibre.net.pk
|   * * * * * * * * * * * * * * * * * * * * * * * *
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
"All I want is a few minutes alone with the source code for the universe and
a quick recompile."


----- Original Message ----- 
From: "Alex Sharaz" <[EMAIL PROTECTED]>
To: "Ahmad Masood Shah" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 4:55 PM
Subject: Re: [squid-users] trimming contents of access.log


>
>
> --On 05 June 2003 16:21 +0500 Ahmad Masood Shah
<[EMAIL PROTECTED]>
> wrote:
>
> > I'm not able to understat what information you want to fetch from your
> > logss. If you want to fetch IP basis information from access log etcc
then
> > simple is that
> >
> > less access.log | grep youriphere
> >
> no i want to configure squid not to put entries in the access.log for HEAD
> commands coming from the IP address associated with my server load
> balancing box. Each cache generates a nightly access.log file that is
about
> 20Mytes and anything I can do to trim some of the triivia out of it would
> help
> Alex
>
> > --
> >
> > Best Regs,
> > Masood Ahmad Shah
> > System Administrator
> >
> > ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
> >|   * * * * * * * * * * * * * * * * * * * * * * * *
> >|   Fibre Net (Pvt) Ltd. Lahore, Pakistan
> >|   Tel: +92-42-6677024
> >|   Mobile: +92-300-4277367
> >|   http://www.fibre.net.pk
> >|   * * * * * * * * * * * * * * * * * * * * * * * *
> > ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
> > Unix is very simple, but it takes a genius to understand the simplicity.
> > (Dennis Ritchie)
> > "All I want is a few minutes alone with the source code for the universe
> > and a quick recompile."
> >
> >
> > ----- Original Message -----
> > From: "Alex Sharaz" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, June 05, 2003 4:12 PM
> > Subject: [squid-users] trimming contents of access.log
> >
> >
> >> hi all,
> >>
> >> quick question,
> >>
> >> I'm running a number of web caches connected to a foundry ServerIronxL
> >> server load balancing device.
> >> The ServerIron performs L7 health checks every 30 seconds ( which I'm
> >> planning to reduce to about 109 secs)
> >>
> >> The only problem is that of course the access logs has got entries for
> >> "HEAD" commands coming from the ServerIron.
> >>
> >> Is it possible to filter out  either types of command or connection
info
> >> from particular IP addresses ?
> >>
> >> TIA
> >> Alex
> >>
> >> Sent using Mulberry 3.01a
> >>
> >
>
>
>
> Sent using Mulberry 3.01a
>

Reply via email to