Saltstack Official Syslog-NG Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

226 Zeilen
4.8KB

  1. syslog_ng:
  2. options:
  3. - chain_hostnames: no
  4. - flush_lines: 0
  5. - use_dns: no
  6. - use_fqdn: no
  7. - owner: root
  8. - group: adm
  9. - perm: =0640
  10. - stats_freq: 0
  11. - bad_hostname: "^gconfd$"
  12. source:
  13. - s_src:
  14. - system: null
  15. - internal: null
  16. destination:
  17. # First some standard logfile
  18. - d_auth:
  19. - file:
  20. - /var/log/auth.log
  21. - d_cron:
  22. - file:
  23. - /var/log/cron.log
  24. - d_daemon:
  25. - file:
  26. - /var/log/daemon.log
  27. - d_kern:
  28. - file:
  29. - /var/log/kern.log
  30. - d_lpr:
  31. - file:
  32. - /var/log/lpr.log
  33. - d_mail:
  34. - file:
  35. - /var/log/mail.log
  36. - d_syslog:
  37. - file:
  38. - /var/log/syslog
  39. - d_user:
  40. - file:
  41. - /var/log/user.log
  42. - d_uucp:
  43. - file:
  44. - /var/log/uucp.log
  45. # This files are the log come from the mail subsystem.
  46. - d_mailinfo:
  47. - file:
  48. - /var/log/mail.info
  49. - d_mailwarn:
  50. - file:
  51. - /var/log/mail.warn
  52. - d_mailerr:
  53. - file:
  54. - /var/log/mail.err
  55. # Logging for INN news system
  56. - d_newscrit:
  57. - file:
  58. - /var/log/news/news.crit
  59. - d_newserr:
  60. - file:
  61. - /var/log/news/news.err
  62. - d_newsnotice:
  63. - file:
  64. - /var/log/news/news.notice
  65. # Some 'catch-all' logfiles
  66. - d_debug:
  67. - file:
  68. - /var/log/debug
  69. - d_error:
  70. - file:
  71. - /var/log/error
  72. - d_messages:
  73. - file:
  74. - /var/log/messages
  75. # The root's console.
  76. - d_console:
  77. - usertty:
  78. - root
  79. # Virtual console.
  80. - d_console_all:
  81. - file:
  82. - '`tty10`'
  83. # The named pipe /dev/xconsole is for the nsole' utility.
  84. - d_xconsole:
  85. - pipe:
  86. - /dev/xconsole
  87. # Debian only
  88. - d_ppp:
  89. - file:
  90. - /var/log/ppp.log
  91. filter:
  92. - f_dbg:
  93. - level: =debug
  94. - f_info:
  95. - level: =info
  96. - f_notice:
  97. - level: =notice
  98. - f_warn:
  99. - level: =warn
  100. - f_err:
  101. - level: =err
  102. - f_crit:
  103. - level: =crit .. emerg
  104. - f_error:
  105. - level: =err .. emerg
  106. - f_console:
  107. - level: =warn .. emerg
  108. - f_debug:
  109. - =level(debug) and not facility(auth, authpriv, news, mail)
  110. - f_messages:
  111. - =level(info,notice,warn) and not facility(auth,authpriv,cron,daemon,mail,news)
  112. - f_auth:
  113. - =facility(auth, authpriv) and not filter(f_debug)
  114. - f_cron:
  115. - =facility(cron) and not filter(f_debug)
  116. - f_daemon:
  117. - =facility(daemon) and not filter(f_debug)
  118. - f_kern:
  119. - =facility(kern) and not filter(f_debug)
  120. - f_lpr:
  121. - =facility(lpr) and not filter(f_debug)
  122. - f_local:
  123. - =facility(local0, local1, local3, local4, local5, local6, local7) and not filter(f_debug)
  124. - f_mail:
  125. - =facility(mail) and not filter(f_debug)
  126. - f_news:
  127. - =facility(news) and not filter(f_debug)
  128. - f_syslog3:
  129. - =not facility(auth, authpriv, mail) and not filter(f_debug)
  130. - f_user:
  131. - =facility(user) and not filter(f_debug)
  132. - f_uucp:
  133. - =facility(uucp) and not filter(f_debug)
  134. - f_cnews:
  135. - =level(notice, err, crit) and facility(news)
  136. - f_cother:
  137. - =level(debug, info, notice, warn) or facility(daemon, mail)
  138. - f_ppp:
  139. - =facility(local2) and not filter(f_debug)
  140. log:
  141. -
  142. - source: =s_src
  143. - filter: =f_auth
  144. - destination: =d_auth
  145. -
  146. - source: =s_src
  147. - filter: =f_cron
  148. - destination: =d_cron
  149. -
  150. - source: =s_src
  151. - filter: =f_daemon
  152. - destination: =d_daemon
  153. -
  154. - source: =s_src
  155. - filter: =f_kern
  156. - destination: =d_kern
  157. -
  158. - source: =s_src
  159. - filter: =f_lpr
  160. - destination: =d_lpr
  161. -
  162. - source: =s_src
  163. - filter: =f_syslog3
  164. - destination: =d_syslog
  165. -
  166. - source: =s_src
  167. - filter: =f_user
  168. - destination: =d_user
  169. -
  170. - source: =s_src
  171. - filter: =f_uucp
  172. - destination: =d_uucp
  173. -
  174. - source: =s_src
  175. - filter: =f_mail
  176. - destination: =d_mail
  177. -
  178. - source: =s_src
  179. - filter: =f_news
  180. - filter: =f_crit
  181. - destination: =d_newscrit
  182. -
  183. - source: =s_src
  184. - filter: =f_news
  185. - filter: =f_err
  186. - destination: =d_newserr
  187. -
  188. - source: =s_src
  189. - filter: =f_news
  190. - filter: =f_notice
  191. - destination: =d_newsnotice
  192. -
  193. - source: =s_src
  194. - filter: =f_debug
  195. - destination: =d_debug
  196. -
  197. - source: =s_src
  198. - filter: =f_error
  199. - destination: =d_error
  200. -
  201. - source: =s_src
  202. - filter: =f_messages
  203. - destination: =d_messages
  204. -
  205. - source: =s_src
  206. - filter: =f_console
  207. - destination: =d_console_all
  208. - destination: =d_xconsole
  209. -
  210. - source: =s_src
  211. - filter: =f_crit
  212. - destination: =d_console