Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-20-2010, 08:30 PM   #1
Registered: Sep 2009
Posts: 125

Rep: Reputation: 15
how to monitor specific ip address in squid access.log

hello linux gurus

I'm trying the tail -f 172.16.X.XX /var/log/squid/access.log
to view the sites requested by the client ip 172.16.X.XX but the result is
it still open all the ip's requesting for the internet access.

is there any tail commands that can monitor only the specific IP address requesting for internet access.

to the moderator(tinkster)/owner: sorry for my impatience

Last edited by struggled_newbie; 06-20-2010 at 09:49 PM. Reason: apologies
Old 06-21-2010, 09:46 AM   #2
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
pipe the output of tail -f to grep and use grep to filter the results. Like tail -f /var/log/squid/access.log | grep 172.16.*.*
Old 06-21-2010, 07:05 PM   #3
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
Originally Posted by scheidel21 View Post
pipe the output of tail -f to grep and use grep to filter the results. Like tail -f /var/log/squid/access.log | grep 172.16.*.*
thanks... it works on me


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
convert LAN IP address to Host Name when I give cmd tail -f /var/log/squid/access.log rs15 Linux - Networking 6 01-22-2012 01:45 AM
Firewall access for a specific mac address mfitzpat Linux - Networking 3 01-07-2010 09:24 AM
Can SQUID log skype calls,voip,chat programs in access.log revinking Linux - Newbie 6 07-27-2008 01:14 PM
website access monitor and log using Squid Proxy in FC4 tsaravan Linux - Networking 1 02-10-2006 05:09 AM
My squid won't fill /var/log/squid/access.log linuxlah Linux - General 5 10-06-2003 10:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration