LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-20-2010, 09:30 PM   #1
struggled_newbie
Member
 
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 10:49 PM. Reason: apologies
 
Old 06-21-2010, 10:46 AM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6-7, WIN 7-10, WIN SRV 03-12r2
Posts: 1,309

Rep: Reputation: 98
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, 08:05 PM   #3
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
Quote:
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
 
  


Reply


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 02:45 AM
Firewall access for a specific mac address mfitzpat Linux - Networking 3 01-07-2010 10:24 AM
Can SQUID log skype calls,voip,chat programs in access.log revinking Linux - Newbie 6 07-27-2008 02:14 PM
website access monitor and log using Squid Proxy in FC4 tsaravan Linux - Networking 1 02-10-2006 06:09 AM
My squid won't fill /var/log/squid/access.log linuxlah Linux - General 5 10-06-2003 11:51 PM


All times are GMT -5. The time now is 10:52 PM.

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