LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 08: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 09:49 PM. Reason: apologies
 
Old 06-21-2010, 09:46 AM   #2
scheidel21
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
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:21 AM.

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
Open Source Consulting | Domain Registration