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.

62 lines
1.1KB

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