4-16
October, 1998
GRF 400/1600 Getting Started - 1.4 Update 2
Initial System Set-up
Option 2: Set up a syslog server
Option 2: Set up a syslog server
One way to log over the network is to use syslog and set up a remote syslogd server (syslog
host). A syslog server is another workstation on the maintenance/administrative LAN that has
sufficient memory to store log files. You can configure remote logging during initial installation
via the configuration script or you can change to remote logging at any time. Both procedures
are described in this section.
In the shell, use a UNIX editor to edit the
/etc/syslog.conf
configuration file and set up a
remote syslog server. The remote syslog or logging server is another node on your LAN that
runs the syslog daemon, syslogd.
The GRF
/etc/syslog.conf
file configures the GRF to send log messages to a syslog
server on your local network. These logs include:
gritd.packets
gr.console
gr.boot
grinchd.log
gr.conferrs
mib2d.log
Follow these steps to configure the GRF and the syslog server for network logging:
1
On the GRF, open the
/etc/syslog.conf
file and uncomment these lines in the
“ Log messages to Network” section by removing
#net#
from each line:
#Log messages to Network
#
#net#*.err;kern.debug;auth.notice;mail.crit @server.domain.com
#net#*.notice;kern.debug;lpr,auth.info;mail.crit
@server.domain.com
#net#cron.info @server.domain.com
#net#local0.info @server.domain.com
#net#local1.info @server.domain.com
#net#local2.* @server.domain.com
#net#local3.* @server.domain.com
#net#local4.* @server.domain.com
#net#local5.* @server.domain.com
While you are still in the
/etc/syslog.conf
file, replace all instances of
“
server.domain.com
” with the domain name of the syslog server that will receive the
log messages.
2
On the GRF, add the IP address and host name of the syslog server to
/etc/hosts.
3
On the GRF, run the grwrite command to save the changes to the
/etc
configuration files
(
/etc/syslog.conf
and
/etc/hosts).
4
Now log in to the syslog server and add these file names to the server’s
/etc/syslog.conf
file:
local0.info /var/log/gritd.packets
local1.info /var/log/gr.console
local2.* /var/log/gr.boot
local3.* /var/log/grinchd.log