[PLUG] tail -f ............

BMDimaculangan bmdimaculangan at bhpi.com.ph
Mon Nov 11 01:50:11 UTC 2002


#tail -f /var/log/squid/access.log

this displays the current site that is being browsed by all the users as the
file access file grows.  how can i make this one selective, only displaying
the site that is being being browse by the user whos having the ip add
192.168.75

-----Original Message-----
From: plug-admin at lists.pdxlinux.org
[mailto:plug-admin at lists.pdxlinux.org]On Behalf Of AthlonRob
Sent: Monday, November 11, 2002 8:52 AM
To: plug at lists.pdxlinux.org
Subject: Re: [PLUG] log files...


On Sun, 2002-11-10 at 16:53, BMDimaculangan wrote:
> how do i copy logs(access.log) of certain ip add and put it into another
> text file.

Are you familiar with grep?  :-)

grep i.p.add.ress access.log > /path/to/new/file

That works if everything is static, if you want something more
permanent, wait a bit and an expert may answer you.  :-)

Rob


_______________________________________________
PLUG mailing list
PLUG at lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug





More information about the PLUG mailing list