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.

pillar.example 1.1KB

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