Saltstack Official Syslog-NG Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.3KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. syslog_ng:
  5. module:
  6. - tfson
  7. include:
  8. - scl.conf
  9. last_include:
  10. - /etc/syslog-ng/conf.d/*.conf
  11. version: 3.5
  12. options:
  13. - threaded: true
  14. - use_dns: false
  15. - use_fqdn: true
  16. - keep_hostname: true
  17. - chain_hostnames: false
  18. - check_hostname: false
  19. source:
  20. - s_internal:
  21. - internal: null
  22. - s_local:
  23. - unix-stream: /dev/log
  24. - file:
  25. - /proc/kmsg
  26. - program_override: kernel
  27. destination:
  28. - df_messages:
  29. - file:
  30. - /var/log/messages
  31. - df_secure:
  32. - file: /var/log/secure
  33. - df_console:
  34. - usertty: root
  35. - dp_devnull:
  36. - program: /bin/cat >/dev/null
  37. - dr_central:
  38. - syslog: my-remote.example.com
  39. filter:
  40. - f_messages:
  41. - level: =info..emerg
  42. - f_secure:
  43. - facility: =authpriv
  44. - f_emerg:
  45. - level: =emerg
  46. - facility: =uucp, news
  47. log:
  48. -
  49. - source: =s_internal
  50. - source: =s_local
  51. - destination: =dr_central
  52. -
  53. - source: =s_local
  54. - filter: =f_emerg
  55. - destination: =df_console
  56. -
  57. - source: =s_local
  58. - filter: =f_secure
  59. - destination: =df_secure
  60. - flags: =final
  61. -
  62. - source: =s_local
  63. - filter: =f_messages
  64. - destination: =df_messages