FreeBSD Bugzilla – Attachment 92426 Details for
Bug 130075
[patch] Changes to handbook syslogd section
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
handbook-syslog.diff
handbook-syslog.diff (text/plain), 3.94 KB, created by
Gavin Atkinson
on 2008-12-31 11:40:01 UTC
(
hide
)
Description:
handbook-syslog.diff
Filename:
MIME Type:
Creator:
Gavin Atkinson
Created:
2008-12-31 11:40:01 UTC
Size:
3.94 KB
patch
obsolete
>Index: doc/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml >=================================================================== >RCS file: /home/dcvs/doc/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml,v >retrieving revision 1.113 >diff -u -r1.113 chapter.sgml >--- doc/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml 26 Dec 2008 03:19:02 -0000 1.113 >+++ doc/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml 30 Dec 2008 14:37:15 -0000 >@@ -5040,6 +5040,26 @@ > be logged to the file specified previously, > <filename>/var/log/logclient.log</filename>.</para> > >+ <para>The server machine must also have the following listing >+ placed inside <filename>/etc/rc.conf</filename>:</para> >+ >+ <programlisting>syslogd_enable="YES" >+syslogd_flags="-a logclient.example.com -vv"</programlisting> >+ >+ <para>The first option will enable the <command>syslogd</command> >+ daemon on boot up, and the second option allows data from the >+ specified client to be accepted on this server. The latter >+ part, using <option>-vv</option>, 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.</para> >+ >+ <para>Multiple <option>-a</option> options may be specified to >+ allow logging from multiple clients. <acronym>IP</acronym> >+ addresses and whole netblocks may also be specified, see the >+ &man.syslog.3; manual page for a full list of possible >+ options.</para> >+ > <para>Finally, the log file should be created. The method used > does not matter, but &man.touch.1; works great for situations > such as this:</para> >@@ -5066,7 +5086,7 @@ > to a logging server in addition to keeping local copies.</para> > > <para>Similar to log servers, clients must also meet a few minimum >- requirements.</para> >+ requirements:</para> > > <itemizedlist> > <listitem> >@@ -5088,20 +5108,18 @@ > </itemizedlist> > > <para>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 > <filename>/etc/rc.conf</filename>:</para> > > <programlisting>syslogd_enable="YES" >-syslogd_flags="-a logclient.example.com -vv"</programlisting> >+syslogd_flags="-s -vv"</programlisting> > >- <para>The first option will enable the <command>syslogd</command> >- daemon on boot up, and the second line allows data from the >- client to be accepted on this server. The latter part, using >- <option>-vv</option>, 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.</para> >+ <para>As before, these entries will enable the >+ <command>syslogd</command> daemon on boot up, and increases >+ the verbosity of logged messages. The <option>-s</option> >+ option prevents logs from being accepted by this client from >+ other hosts.</para> > > <para>Facilities describe the system part for which a message > is generated. For an example, <acronym>ftp</acronym> and >@@ -5128,14 +5146,15 @@ > <screen>&prompt.root; <userinput>/etc/rc.d/syslogd restart</userinput></screen> > > <para>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 > <command>syslogd</command>:</para> > > <screen>&prompt.root; <userinput>logger "Test message from logclient"</userinput></screen> > >- <para>This message should now exist in >- <filename>/var/log/messages</filename> on both the client >- and the server.</para> >+ <para>This message should now exist both in >+ <filename>/var/log/messages</filename> on the client, and >+ <filename>/var/log/logclient.log</filename> on the >+ log server.</para> > </sect2> > > <sect2>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 130075
: 92426