Saltstack Official Syslog-NG Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

90 rindas
2.2KB

  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
  65. # tofs:
  66. # The files_switch key serves as a selector for alternative
  67. # directories under the formula files directory. See TOFS pattern
  68. # doc for more info.
  69. # Note: Any value not evaluated by `config.get` will be used literally.
  70. # This can be used to set custom paths, as many levels deep as required.
  71. # files_switch:
  72. # - any/path/can/be/used/here
  73. # - id
  74. # - roles
  75. # - osfinger
  76. # - os
  77. # - os_family
  78. # All aspects of path/file resolution are customisable using the options below.
  79. # This is unnecessary in most cases; there are sensible defaults.
  80. # path_prefix: template_alt
  81. # dirs:
  82. # files: files_alt
  83. # default: default_alt
  84. # The entries under `source_files` are prepended to the default source files
  85. # given for the state
  86. # source_files:
  87. # syslog_ng/config/install:
  88. # - 'alt_syslog-ng.conf'