Saltstack Official Syslog-NG Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pillar.example 1.0KB

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