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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.