logstash.yml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. # Settings file in YAML
  2. #
  3. # Settings can be specified either in hierarchical form, e.g.:
  4. #
  5. # pipeline:
  6. # batch:
  7. # size: 125
  8. # delay: 5
  9. #
  10. # Or as flat keys:
  11. #
  12. # pipeline.batch.size: 125
  13. # pipeline.batch.delay: 5
  14. #
  15. # ------------ Node identity ------------
  16. #
  17. # Use a descriptive name for the node:
  18. #
  19. # node.name: test
  20. #
  21. # If omitted the node name will default to the machine's host name
  22. #
  23. # ------------ Data path ------------------
  24. #
  25. # Which directory should be used by logstash and its plugins
  26. # for any persistent needs. Defaults to LOGSTASH_HOME/data
  27. #
  28. # path.data:
  29. #
  30. # ------------ Pipeline Settings --------------
  31. #
  32. # Set the number of workers that will, in parallel, execute the filters+outputs
  33. # stage of the pipeline.
  34. #
  35. # This defaults to the number of the host's CPU cores.
  36. #
  37. # pipeline.workers: 2
  38. #
  39. # How many workers should be used per output plugin instance
  40. #
  41. # pipeline.output.workers: 1
  42. #
  43. # How many events to retrieve from inputs before sending to filters+workers
  44. #
  45. # pipeline.batch.size: 125
  46. #
  47. # How long to wait before dispatching an undersized batch to filters+workers
  48. # Value is in milliseconds.
  49. #
  50. # pipeline.batch.delay: 5
  51. #
  52. # Force Logstash to exit during shutdown even if there are still inflight
  53. # events in memory. By default, logstash will refuse to quit until all
  54. # received events have been pushed to the outputs.
  55. #
  56. # WARNING: enabling this can lead to data loss during shutdown
  57. #
  58. # pipeline.unsafe_shutdown: false
  59. #
  60. # ------------ Pipeline Configuration Settings --------------
  61. #
  62. # Where to fetch the pipeline configuration for the main pipeline
  63. #
  64. # path.config:
  65. #
  66. # Pipeline configuration string for the main pipeline
  67. #
  68. # config.string:
  69. #
  70. # At startup, test if the configuration is valid and exit (dry run)
  71. #
  72. # config.test_and_exit: false
  73. #
  74. # Periodically check if the configuration has changed and reload the pipeline
  75. # This can also be triggered manually through the SIGHUP signal
  76. #
  77. # config.reload.automatic: false
  78. #
  79. # How often to check if the pipeline configuration has changed (in seconds)
  80. #
  81. # config.reload.interval: 3
  82. #
  83. # Show fully compiled configuration as debug log message
  84. # NOTE: --log.level must be 'debug'
  85. #
  86. # config.debug: false
  87. #
  88. # ------------ Module Settings ---------------
  89. # Define modules here. Modules definitions must be defined as an array.
  90. # The simple way to see this is to prepend each `name` with a `-`, and keep
  91. # all associated variables under the `name` they are associated with, and
  92. # above the next, like this:
  93. #
  94. # modules:
  95. # - name: MODULE_NAME
  96. # var.PLUGINTYPE1.PLUGINNAME1.KEY1: VALUE
  97. # var.PLUGINTYPE1.PLUGINNAME1.KEY2: VALUE
  98. # var.PLUGINTYPE2.PLUGINNAME1.KEY1: VALUE
  99. # var.PLUGINTYPE3.PLUGINNAME3.KEY1: VALUE
  100. #
  101. # Module variable names must be in the format of
  102. #
  103. # var.PLUGIN_TYPE.PLUGIN_NAME.KEY
  104. #
  105. # modules:
  106. #
  107. # ------------ Queuing Settings --------------
  108. #
  109. # Internal queuing model, "memory" for legacy in-memory based queuing and
  110. # "persisted" for disk-based acked queueing. Defaults is memory
  111. #
  112. # queue.type: memory
  113. #
  114. # If using queue.type: persisted, the directory path where the data files will be stored.
  115. # Default is path.data/queue
  116. #
  117. # path.queue:
  118. #
  119. # If using queue.type: persisted, the page data files size. The queue data consists of
  120. # append-only data files separated into pages. Default is 250mb
  121. #
  122. # queue.page_capacity: 250mb
  123. #
  124. # If using queue.type: persisted, the maximum number of unread events in the queue.
  125. # Default is 0 (unlimited)
  126. #
  127. # queue.max_events: 0
  128. #
  129. # If using queue.type: persisted, the total capacity of the queue in number of bytes.
  130. # If you would like more unacked events to be buffered in Logstash, you can increase the
  131. # capacity using this setting. Please make sure your disk drive has capacity greater than
  132. # the size specified here. If both max_bytes and max_events are specified, Logstash will pick
  133. # whichever criteria is reached first
  134. # Default is 1024mb or 1gb
  135. #
  136. # queue.max_bytes: 1024mb
  137. #
  138. # If using queue.type: persisted, the maximum number of acked events before forcing a checkpoint
  139. # Default is 1024, 0 for unlimited
  140. #
  141. # queue.checkpoint.acks: 1024
  142. #
  143. # If using queue.type: persisted, the maximum number of written events before forcing a checkpoint
  144. # Default is 1024, 0 for unlimited
  145. #
  146. # queue.checkpoint.writes: 1024
  147. #
  148. # If using queue.type: persisted, the interval in milliseconds when a checkpoint is forced on the head page
  149. # Default is 1000, 0 for no periodic checkpoint.
  150. #
  151. # queue.checkpoint.interval: 1000
  152. #
  153. # ------------ Dead-Letter Queue Settings --------------
  154. # Flag to turn on dead-letter queue.
  155. #
  156. # dead_letter_queue.enable: false
  157. # If using dead_letter_queue.enable: true, the maximum size of each dead letter queue. Entries
  158. # will be dropped if they would increase the size of the dead letter queue beyond this setting.
  159. # Deafault is 1024mb
  160. # dead_letter_queue.max_bytes: 1024mb
  161. # If using dead_letter_queue.enable: true, the directory path where the data files will be stored.
  162. # Default is path.data/dead_letter_queue
  163. #
  164. # path.dead_letter_queue:
  165. #
  166. # ------------ Metrics Settings --------------
  167. #
  168. # Bind address for the metrics REST endpoint
  169. #
  170. # http.host: "127.0.0.1"
  171. #
  172. # Bind port for the metrics REST endpoint, this option also accept a range
  173. # (9600-9700) and logstash will pick up the first available ports.
  174. #
  175. # http.port: 9600-9700
  176. #
  177. # ------------ Debugging Settings --------------
  178. #
  179. # Options for log.level:
  180. # * fatal
  181. # * error
  182. # * warn
  183. # * info (default)
  184. # * debug
  185. # * trace
  186. #
  187. # log.level: info
  188. # path.logs:
  189. #
  190. # ------------ Other Settings --------------
  191. #
  192. # Where to find custom plugins
  193. # path.plugins: []