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

Brent Rieck bsr at spek.org
Mon Nov 11 06:41:41 UTC 2002


On Sun, 2002-11-10 at 17:50, BMDimaculangan wrote:
> #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
> 

try piping the output from tail -f to grep, something like this:

 tail -f /var/log/squid/access.log | grep "192.168.75"

--Brent




More information about the PLUG mailing list