diff --git a/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml b/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml index b32610300b..13eed95d35 100644 --- a/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml @@ -5040,6 +5040,26 @@ driftfile /var/db/ntp.drift be logged to the file specified previously, /var/log/logclient.log. + The server machine must also have the following listing + placed inside /etc/rc.conf: + + syslogd_enable="YES" +syslogd_flags="-a logclient.example.com -vv" + + The first option will enable the syslogd + daemon on boot up, and the second option allows data from the + specified client to be accepted on this server. The latter + part, using , will increase the verbosity + of logged messages. This is extremely useful for tweaking + facilities as administrators are able to see what type of + messages are being logged under which facility. + + Multiple options may be specified to + allow logging from multiple clients. IP + addresses and whole netblocks may also be specified, see the + &man.syslog.3; manual page for a full list of possible + options. + Finally, the log file should be created. The method used does not matter, but &man.touch.1; works great for situations such as this: @@ -5066,7 +5086,7 @@ driftfile /var/db/ntp.drift to a logging server in addition to keeping local copies. Similar to log servers, clients must also meet a few minimum - requirements. + requirements: @@ -5088,20 +5108,18 @@ driftfile /var/db/ntp.drift Client configuration is a bit more relaxed when compared - to that of the servers. The client machine must also have the + to that of the servers. The client machine must have the following listing placed inside /etc/rc.conf: syslogd_enable="YES" -syslogd_flags="-a logclient.example.com -vv" +syslogd_flags="-s -vv" - The first option will enable the syslogd - daemon on boot up, and the second line allows data from the - client to be accepted on this server. The latter part, using - , will increase the verbosity of logged - messages. This is extremely useful for tweaking facilities as - administrators are able to see what type of messages are being - logged under which facility. + As before, these entries will enable the + syslogd daemon on boot up, and increases + the verbosity of logged messages. The + option prevents logs from being accepted by this client from + other hosts. Facilities describe the system part for which a message is generated. For an example, ftp and @@ -5128,14 +5146,15 @@ syslogd_flags="-a logclient.example.com -vv" &prompt.root; /etc/rc.d/syslogd restart To test that log messages are being sent across the network, - use &man.logger.1; to send a message to + use &man.logger.1; on the client to send a message to syslogd: &prompt.root; logger "Test message from logclient" - This message should now exist in - /var/log/messages on both the client - and the server. + This message should now exist both in + /var/log/messages on the client, and + /var/log/logclient.log on the + log server.