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 next >
Text File  |  2006-12-19  |  5KB  |  194 lines

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