home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20120521.etc.tar.gz / bradford.20120521.etc.tar / etc / syslog-ng / syslog-ng.conf.in < prev   
Text File  |  2006-05-30  |  5KB  |  191 lines

  1. #@SuSEconfig@
  2. #@SuSEconfig@ This is a template file used by SuSEconfig
  3. #@SuSEconfig@ to generate the final syslog-ng.conf.
  4. #@SuSEconfig@
  5. #@SuSEconfig@ SuSEconfig adds additional log sockets from
  6. #@SuSEconfig@ /etc/sysconfig/syslog to the source bellow.
  7. #@SuSEconfig@
  8. #
  9. # File format description can be found in syslog-ng.conf(5)
  10. # and /usr/share/doc/packages/syslog-ng/syslog-ng.txt.
  11. #
  12.  
  13. #
  14. # Global options.
  15. #
  16. options { long_hostnames(off); sync(0); perm(0640); stats(3600); };
  17.  
  18. #
  19. # 'src' is our main source definition. you can add
  20. # more sources driver definitions to it, or define
  21. # your own sources, i.e.:
  22. #
  23. #source my_src { .... };
  24. #
  25. source src {
  26.     #
  27.     # include internal syslog-ng messages
  28.     # note: the internal() soure is required!
  29.     #
  30.     internal();
  31.  
  32.     #
  33.     # the following line will be replaced by the
  34.     # socket list generated by SuSEconfig using
  35.     # variables from /etc/sysconfig/syslog:
  36.     #
  37.     @SuSEconfig_SOCKETS@
  38.  
  39.     #
  40.     # uncomment to process log messages from network:
  41.     #
  42.     #udp(ip("0.0.0.0") port(514));
  43. };
  44.  
  45.  
  46. #
  47. # Filter definitions
  48. #
  49. filter f_iptables   { facility(kern) and match("IN=") and match("OUT="); };
  50.  
  51. filter f_console    { level(warn) and facility(kern) and not filter(f_iptables)
  52.                       or level(err) and not facility(authpriv); };
  53.  
  54. filter f_newsnotice { level(notice) and facility(news); };
  55. filter f_newscrit   { level(crit)   and facility(news); };
  56. filter f_newserr    { level(err)    and facility(news); };
  57. filter f_news       { facility(news); };
  58.  
  59. filter f_mailinfo   { level(info)      and facility(mail); };
  60. filter f_mailwarn   { level(warn)      and facility(mail); };
  61. filter f_mailerr    { level(err, crit) and facility(mail); };
  62. filter f_mail       { facility(mail); };
  63.  
  64. filter f_cron       { facility(cron); };
  65.  
  66. filter f_local      { facility(local0, local1, local2, local3,
  67.                                local4, local5, local6, local7); };
  68.  
  69. filter f_acpid      { match('^\[acpid\]:'); };
  70. filter f_netmgm     { match('^NetworkManager:'); };
  71.  
  72. filter f_messages   { not facility(news, mail) and not filter(f_iptables); };
  73. filter f_warn       { level(warn, err, crit) and not filter(f_iptables); };
  74. filter f_alert      { level(alert); };
  75.  
  76.  
  77. #
  78. # Most warning and errors on tty10 and on the xconsole pipe:
  79. #
  80. destination console  { file("/dev/tty10"    group(tty) perm(0620)); };
  81. log { source(src); filter(f_console); destination(console); };
  82.  
  83. destination xconsole { pipe("/dev/xconsole" group(tty) perm(0400)); };
  84. log { source(src); filter(f_console); destination(xconsole); };
  85.  
  86. # Enable this, if you want that root is informed immediately,
  87. # e.g. of logins:
  88. #
  89. #destination root { usertty("root"); };
  90. #log { source(src); filter(f_alert); destination(root); };
  91.  
  92.  
  93. #
  94. # News-messages in separate files:
  95. #
  96. destination newscrit   { file("/var/log/news/news.crit"
  97.                               owner(news) group(news)); };
  98. log { source(src); filter(f_newscrit); destination(newscrit); };
  99.  
  100. destination newserr    { file("/var/log/news/news.err"
  101.                               owner(news) group(news)); };
  102. log { source(src); filter(f_newserr); destination(newserr); };
  103.  
  104. destination newsnotice { file("/var/log/news/news.notice"
  105.                               owner(news) group(news)); };
  106. log { source(src); filter(f_newsnotice); destination(newsnotice); };
  107.  
  108. #
  109. # and optionally also all in one file:
  110. # (don't forget to provide logrotation config)
  111. #
  112. #destination news { file("/var/log/news.all"); };
  113. #log { source(src); filter(f_news); destination(news); };
  114.  
  115.  
  116. #
  117. # Mail-messages in separate files:
  118. #
  119. destination mailinfo { file("/var/log/mail.info"); };
  120. log { source(src); filter(f_mailinfo); destination(mailinfo); };
  121.  
  122. destination mailwarn { file("/var/log/mail.warn"); };
  123. log { source(src); filter(f_mailwarn); destination(mailwarn); };
  124.  
  125. destination mailerr  { file("/var/log/mail.err" fsync(yes)); };
  126. log { source(src); filter(f_mailerr);  destination(mailerr); };
  127.  
  128. #
  129. # and also all in one file:
  130. #
  131. destination mail { file("/var/log/mail"); };
  132. log { source(src); filter(f_mail); destination(mail); };
  133.  
  134.  
  135. #
  136. # acpid messages in one file:
  137. #
  138. destination acpid { file("/var/log/acpid"); };
  139. log { source(src); filter(f_acpid); destination(acpid); flags(final); };
  140.  
  141. #
  142. # NetworkManager messages in one file:
  143. #
  144. destination netmgm { file("/var/log/NetworkManager"); };
  145. log { source(src); filter(f_netmgm); destination(netmgm); flags(final); };
  146.  
  147.  
  148. #
  149. # Cron-messages in one file:
  150. # (don't forget to provide logrotation config)
  151. #
  152. #destination cron { file("/var/log/cron"); };
  153. #log { source(src); filter(f_cron); destination(cron); };
  154.  
  155.  
  156. #
  157. # Some boot scripts use/require local[1-7]:
  158. #
  159. destination localmessages { file("/var/log/localmessages"); };
  160. log { source(src); filter(f_local); destination(localmessages); };
  161.  
  162.  
  163. #
  164. # All messages except iptables and the facilities news and mail:
  165. #
  166. destination messages { file("/var/log/messages"); };
  167. log { source(src); filter(f_messages); destination(messages); };
  168.  
  169.  
  170. #
  171. # Firewall (iptables) messages in one file:
  172. #
  173. destination firewall { file("/var/log/firewall"); };
  174. log { source(src); filter(f_iptables); destination(firewall); };
  175.  
  176.  
  177. #
  178. # Warnings (except iptables) in one file:
  179. #
  180. destination warn { file("/var/log/warn" fsync(yes)); };
  181. log { source(src); filter(f_warn); destination(warn); };
  182.  
  183. #
  184. # Enable this, if you want to keep all messages in one file:
  185. # (don't forget to provide logrotation config)
  186. #
  187. #destination allmessages { file("/var/log/allmessages"); };
  188. #log { source(src); destination(allmessages); };
  189.  
  190.  
  191.