LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-10-2009, 05:44 AM   #1
thetzawko
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Rep: Reputation: 0
Question Want to see computer names in squid log file


Hi all

I want to see computer names, such as MYpc, Server1, in squid's access.log file instead of IP addresses.

How can I do?

I also have a problem. I cannot start dhcpd service. It's failed. I've made required configurations by modification of sample conf file.

I used redhat enterprise 5 and dhcpd 3.x.

help me.

thanks.
 
Old 10-10-2009, 05:58 AM   #2
eth1
Member
 
Registered: May 2008
Posts: 97

Rep: Reputation: 20
I am not too sure about this but you can give this a shot, you either need to have a local DNS resolving DNS names/hostnames etc or you need to add the Machine IP addresses and their corresponding names in /etc/hosts of the Squid Machine.

So for example, if the Squid server is 192.168.1.2 and a client machine is 192.168.1.4 then in /etc/hosts of 192.168.1.2,

192.168.1.4 machine1

where machine1 is the hostname/name associated with 192.168.1.4

As for your DHCP problem, can you post the output of the following commands,

Quote:
/etc/init.d/dhcpd restart ; tail -f /var/log/messages
 
Old 10-10-2009, 06:10 AM   #3
thetzawko
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by eth1 View Post
I am not too sure about this but you can give this a shot, you either need to have a local DNS resolving DNS names/hostnames etc or you need to add the Machine IP addresses and their corresponding names in /etc/hosts of the Squid Machine.

So for example, if the Squid server is 192.168.1.2 and a client machine is 192.168.1.4 then in /etc/hosts of 192.168.1.2,

192.168.1.4 machine1

where machine1 is the hostname/name associated with 192.168.1.4

As for your DHCP problem, can you post the output of the following commands,
DHCP problem is solved. I found that I need to set ddns-update-style option before dhcpd start. I found in /var/log/messages file.

So thanks for ur help
 
  


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
DHCP: Logging host names in log file jinanwow Linux - Server 5 07-08-2009 11:10 AM
Tool to parse squid log file. linuxlover.chaitanya Linux - Software 3 02-08-2009 11:40 PM
Squid Proxy is unable to log "access.log" file. nishith Linux - Server 6 08-10-2008 12:00 AM
what log file generator that support squid log? heero82 Linux - Software 2 07-11-2003 08:52 PM
How to print the log file report in squid? heero82 Linux - Software 0 06-18-2003 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:27 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
Open Source Consulting | Domain Registration