sysklogd.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-sysklogd" role="wrap">
  8. <?dbhtml filename="sysklogd.html"?>
  9. <title>Sysklogd-&sysklogd-version;</title>
  10. <indexterm zone="ch-system-sysklogd">
  11. <primary sortas="a-Sysklogd">Sysklogd</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The Sysklogd package contains programs for logging system messages,
  16. such as those given by the kernel when unusual things happen.</para>
  17. <segmentedlist>
  18. <segtitle>&buildtime;</segtitle>
  19. <segtitle>&diskspace;</segtitle>
  20. <seglistitem>
  21. <seg>&sysklogd-ch6-sbu;</seg>
  22. <seg>&sysklogd-ch6-du;</seg>
  23. </seglistitem>
  24. </segmentedlist>
  25. </sect2>
  26. <sect2 role="installation">
  27. <title>Installation of Sysklogd</title>
  28. <para>The following patch fixes various issues, including a problem building
  29. Sysklogd with Linux 2.6 series kernels:</para>
  30. <screen><userinput>patch -Np1 -i ../&sysklogd-fixes-patch;</userinput></screen>
  31. <para>The following patch makes sysklogd treat bytes in the 0x80--0x9f range
  32. literally in the messages being logged, instead of replacing them with octal
  33. codes. Unpatched sysklogd would damage messages in the UTF-8 encoding:</para>
  34. <screen><userinput>patch -Np1 -i ../&sysklogd-8bit-patch;</userinput></screen>
  35. <para>Compile the package:</para>
  36. <screen><userinput>make</userinput></screen>
  37. <para>This package does not come with a test suite.</para>
  38. <para>Install the package:</para>
  39. <screen><userinput>make install</userinput></screen>
  40. </sect2>
  41. <sect2 id="conf-sysklogd" role="configuration">
  42. <title>Configuring Sysklogd</title>
  43. <indexterm zone="conf-sysklogd">
  44. <primary sortas="a-Sysklogd">Sysklogd</primary>
  45. <secondary>configuring</secondary>
  46. </indexterm>
  47. <indexterm zone="conf-sysklogd">
  48. <primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary>
  49. </indexterm>
  50. <para>Create a new <filename>/etc/syslog.conf</filename> file by running the
  51. following:</para>
  52. <screen><userinput>cat &gt; /etc/syslog.conf &lt;&lt; "EOF"
  53. <literal># Begin /etc/syslog.conf
  54. auth,authpriv.* -/var/log/auth.log
  55. *.*;auth,authpriv.none -/var/log/sys.log
  56. daemon.* -/var/log/daemon.log
  57. kern.* -/var/log/kern.log
  58. mail.* -/var/log/mail.log
  59. user.* -/var/log/user.log
  60. *.emerg *
  61. # End /etc/syslog.conf</literal>
  62. EOF</userinput></screen>
  63. </sect2>
  64. <sect2 id="contents-sysklogd" role="content">
  65. <title>Contents of Sysklogd</title>
  66. <segmentedlist>
  67. <segtitle>Installed programs</segtitle>
  68. <seglistitem>
  69. <seg>klogd and syslogd</seg>
  70. </seglistitem>
  71. </segmentedlist>
  72. <variablelist>
  73. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  74. <?dbfo list-presentation="list"?>
  75. <?dbhtml list-presentation="table"?>
  76. <varlistentry id="klogd">
  77. <term><command>klogd</command></term>
  78. <listitem>
  79. <para>A system daemon for intercepting and logging kernel messages</para>
  80. <indexterm zone="ch-system-sysklogd klogd">
  81. <primary sortas="b-klogd">klogd</primary>
  82. </indexterm>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry id="syslogd">
  86. <term><command>syslogd</command></term>
  87. <listitem>
  88. <para>Logs the messages that system programs offer for logging. Every
  89. logged message contains at least a date stamp and a hostname, and
  90. normally the program's name too, but that depends on how trusting the
  91. logging daemon is told to be</para>
  92. <indexterm zone="ch-system-sysklogd syslogd">
  93. <primary sortas="b-syslogd">syslogd</primary>
  94. </indexterm>
  95. </listitem>
  96. </varlistentry>
  97. </variablelist>
  98. </sect2>
  99. </sect1>