LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-03-2010, 03:17 PM   #1
kumarsundaram
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Rep: Reputation: 15
Squid3 Access Log Hostname


Hello,
I have Squid3 running and SARG for producing report. I would like to see the hostname being logged in the access.log file instead of the client IP address. I have already set the option log_fqdn=on and it doesn't do it. I still see the client IPs in access.log files...

Anybody know what I am doing wrong? Please..

Thanks,
 
Old 02-03-2010, 03:26 PM   #2
nicedream
Member
 
Registered: Feb 2010
Distribution: Arch Linux
Posts: 68

Rep: Reputation: 19
You may have to restart the squid service for the setting to take effect.

Also, some IP addresses will not be resolvable to a domain name, so you will still get the IP in the log.

Just so you know, logging the FQDN will affect performance, because of all the DNS queries the squid server will have to do.
 
Old 02-03-2010, 04:06 PM   #3
kumarsundaram
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks. The squid service has been restarted several times. I have even tried restarting the host and still no luck. All client PCs are windows based running in a Windows domain environment (DHCP server). I checked the /etc/resolv.conf file and the nameserver IPs are correctly pointing to our internal DNS servers.

Just curious to know when you "some IP addressess will not be resolvable to a domain name". What do you mean by that? Any example?
 
Old 02-03-2010, 04:19 PM   #4
nicedream
Member
 
Registered: Feb 2010
Distribution: Arch Linux
Posts: 68

Rep: Reputation: 19
I mean that not every IP address that exists will have an associated domain name.

One example would be internal IP addresses, assuming you do not have a local DNS server or host file that defines them.

Can you give an example of the IP addresses you are seeing in the log file?
 
Old 02-03-2010, 04:44 PM   #5
kumarsundaram
LQ Newbie
 
Registered: Jun 2005
Posts: 23

Original Poster
Rep: Reputation: 15
192.168.1.138 - I am able to ping the hostname of the client PC associated with this IP and able to get a response back. I tried pinging from the Ubuntu box that hosts Squid3.
 
  


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
In Apache server, How to change log file location and log format for access log fil? since1993 Linux - Server 1 08-19-2009 05:14 PM
Restricting access using Squid3 Dnyanraj Linux - Server 1 12-13-2008 09:39 AM
/var/log/auth.log doens't have correct date and hostname (Solution) alfmarius Linux - Newbie 0 10-07-2008 07:09 AM
Squid - how to save the hostname in the log Dfdf Linux - Networking 0 07-19-2003 01:23 PM
need fully qualified hostname before log-in - how? BrianK Linux - Networking 7 03-12-2002 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:01 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