sysklogd.xml 4.1 KB

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