Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hosts File loghost Entry

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
What is the purpose of the "loghost" entry in the hosts file?

Thanks Michael
 
it's to do with syslog'ing i think ... can't be sure, but it seems likely.
 
Just as you define a system called mailhost to handle mail relaying, you can define a system called loghost in the /etc/hosts file to hold all logs for an entire NIS domain. The system log is supported by the syslogd program. You can specify a loghost in the Hosts database. If no loghost is specified, then error messages from syslogd are not reported.

 
Thanks for the responses. If it is for logging what directory does the log file reside in? What is the log file name?

Thanks again, Michael
 
all of the system log files are stored under /var/log
 
The /etc/syslog.conf file configuration decides on where all the system logs will be kept.. By default, the syslog.conf configuration writes logs in either or both of /var/adm/messages and /var/log/syslog file.. With /etc/syslog.conf file tweaking, one can keep the logs anywhere in the system.

And the loghost entry in /etc/hosts file defines as to on which machine, the system logs shall be stored.

Regds,

- Hemant
Networking and Systems Integration Group
Satyam Computer Services Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top