Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.55 KB | None | 0 0
  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. node.name: LOGSTASH-NODE2
  19. #
  20. # If omitted the node name will default to the machine's host name
  21. #
  22. # ------------ Data path ------------------
  23. #
  24. # Which directory should be used by logstash and its plugins
  25. # for any persistent needs. Defaults to LOGSTASH_HOME/data
  26. #
  27. path.data: /var/lib/logstash
  28. #
  29. # ------------ Pipeline Settings --------------
  30. #
  31. # The ID of the pipeline.
  32. #
  33. # pipeline.id: main
  34. #
  35. # Set the number of workers that will, in parallel, execute the filters+outputs
  36. # stage of the pipeline.
  37. #
  38. # This defaults to the number of the host's CPU cores.
  39. #
  40. # pipeline.workers: 2
  41. #
  42. # How many events to retrieve from inputs before sending to filters+workers
  43. #
  44. # pipeline.batch.size: 125
  45. #
  46. # How long to wait in milliseconds while polling for the next event
  47. # before dispatching an undersized batch to filters+outputs
  48. #
  49. # pipeline.batch.delay: 50
  50. #
  51. # Force Logstash to exit during shutdown even if there are still inflight
  52. # events in memory. By default, logstash will refuse to quit until all
  53. # received events have been pushed to the outputs.
  54. #
  55. # WARNING: enabling this can lead to data loss during shutdown
  56. #
  57. # pipeline.unsafe_shutdown: false
  58. #
  59. # ------------ Pipeline Configuration Settings --------------
  60. #
  61. # Where to fetch the pipeline configuration for the main pipeline
  62. #
  63. # path.config:
  64. #
  65. # Pipeline configuration string for the main pipeline
  66. #
  67. # config.string:
  68. #
  69. # At startup, test if the configuration is valid and exit (dry run)
  70. #
  71. # config.test_and_exit: false
  72. #
  73. # Periodically check if the configuration has changed and reload the pipeline
  74. # This can also be triggered manually through the SIGHUP signal
  75. #
  76. config.reload.automatic: true
  77. #
  78. # How often to check if the pipeline configuration has changed (in seconds)
  79. config.reload.interval: 3s
  80. #
  81. # Show fully compiled configuration as debug log message
  82. # NOTE: --log.level must be 'debug'
  83. #
  84. # config.debug: false
  85. #
  86. # When enabled, process escaped characters such as \n and \" in strings in the
  87. # pipeline configuration files.
  88. #
  89. # config.support_escapes: false
  90. #
  91. # ------------ Module Settings ---------------
  92. # Define modules here. Modules definitions must be defined as an array.
  93. # The simple way to see this is to prepend each `name` with a `-`, and keep
  94. # all associated variables under the `name` they are associated with, and
  95. # above the next, like this:
  96. #
  97. # modules:
  98. # - name: MODULE_NAME
  99. # var.PLUGINTYPE1.PLUGINNAME1.KEY1: VALUE
  100. # var.PLUGINTYPE1.PLUGINNAME1.KEY2: VALUE
  101. # var.PLUGINTYPE2.PLUGINNAME1.KEY1: VALUE
  102. # var.PLUGINTYPE3.PLUGINNAME3.KEY1: VALUE
  103. #
  104. # Module variable names must be in the format of
  105. #
  106. # var.PLUGIN_TYPE.PLUGIN_NAME.KEY
  107. #
  108. # modules:
  109. #
  110. # ------------ Cloud Settings ---------------
  111. # Define Elastic Cloud settings here.
  112. # Format of cloud.id is a base64 value e.g. dXMtZWFzdC0xLmF3cy5mb3VuZC5pbyRub3RhcmVhbCRpZGVudGlmaWVy
  113. # and it may have an label prefix e.g. staging:dXMtZ...
  114. # This will overwrite 'var.elasticsearch.hosts' and 'var.kibana.host'
  115. # cloud.id: <identifier>
  116. #
  117. # Format of cloud.auth is: <user>:<pass>
  118. # This is optional
  119. # If supplied this will overwrite 'var.elasticsearch.username' and 'var.elasticsearch.password'
  120. # If supplied this will overwrite 'var.kibana.username' and 'var.kibana.password'
  121. # cloud.auth: elastic:<password>
  122. #
  123. # ------------ Queuing Settings --------------
  124. #
  125. # Internal queuing model, "memory" for legacy in-memory based queuing and
  126. # "persisted" for disk-based acked queueing. Defaults is memory
  127. #
  128. # queue.type: memory
  129. #
  130. # If using queue.type: persisted, the directory path where the data files will be stored.
  131. # Default is path.data/queue
  132. #
  133. # path.queue:
  134. #
  135. # If using queue.type: persisted, the page data files size. The queue data consists of
  136. # append-only data files separated into pages. Default is 64mb
  137. #
  138. # queue.page_capacity: 64mb
  139. #
  140. # If using queue.type: persisted, the maximum number of unread events in the queue.
  141. # Default is 0 (unlimited)
  142. #
  143. # queue.max_events: 0
  144. #
  145. # If using queue.type: persisted, the total capacity of the queue in number of bytes.
  146. # If you would like more unacked events to be buffered in Logstash, you can increase the
  147. # capacity using this setting. Please make sure your disk drive has capacity greater than
  148. # the size specified here. If both max_bytes and max_events are specified, Logstash will pick
  149. # whichever criteria is reached first
  150. # Default is 1024mb or 1gb
  151. #
  152. # queue.max_bytes: 1024mb
  153. #
  154. # If using queue.type: persisted, the maximum number of acked events before forcing a checkpoint
  155. # Default is 1024, 0 for unlimited
  156. #
  157. # queue.checkpoint.acks: 1024
  158. #
  159. # If using queue.type: persisted, the maximum number of written events before forcing a checkpoint
  160. # Default is 1024, 0 for unlimited
  161. #
  162. # queue.checkpoint.writes: 1024
  163. #
  164. # If using queue.type: persisted, the interval in milliseconds when a checkpoint is forced on the head page
  165. # Default is 1000, 0 for no periodic checkpoint.
  166. #
  167. # queue.checkpoint.interval: 1000
  168. #
  169. # ------------ Dead-Letter Queue Settings --------------
  170. # Flag to turn on dead-letter queue.
  171. #
  172. # dead_letter_queue.enable: false
  173.  
  174. # If using dead_letter_queue.enable: true, the maximum size of each dead letter queue. Entries
  175. # will be dropped if they would increase the size of the dead letter queue beyond this setting.
  176. # Default is 1024mb
  177. # dead_letter_queue.max_bytes: 1024mb
  178.  
  179. # If using dead_letter_queue.enable: true, the directory path where the data files will be stored.
  180. # Default is path.data/dead_letter_queue
  181. #
  182. # path.dead_letter_queue:
  183. #
  184. # ------------ Metrics Settings --------------
  185. #
  186. # Bind address for the metrics REST endpoint
  187. #
  188. http.host: "172.27.64.30"
  189. #
  190. # Bind port for the metrics REST endpoint, this option also accept a range
  191. # (9600-9700) and logstash will pick up the first available ports.
  192. #
  193. # http.port: 9600-9700
  194. #
  195. # ------------ Debugging Settings --------------
  196. #
  197. # Options for log.level:
  198. # * fatal
  199. # * error
  200. # * warn
  201. # * info (default)
  202. # * debug
  203. # * trace
  204. #
  205. # log.level: info
  206. path.logs: /var/log/logstash
  207. #
  208. # ------------ Other Settings --------------
  209. #
  210. # Where to find custom plugins
  211. # path.plugins: []
  212. #
  213. # ------------ X-Pack Settings (not applicable for OSS build)--------------
  214. #
  215. # X-Pack Monitoring
  216. # https://www.elastic.co/guide/en/logstash/current/monitoring-logstash.html
  217. #xpack.monitoring.enabled: false
  218. #xpack.monitoring.elasticsearch.username: logstash_system
  219. #xpack.monitoring.elasticsearch.password: password
  220. #xpack.monitoring.elasticsearch.url: ["https://es1:9200", "https://es2:9200"]
  221. #xpack.monitoring.elasticsearch.ssl.ca: [ "/path/to/ca.crt" ]
  222. #xpack.monitoring.elasticsearch.ssl.truststore.path: path/to/file
  223. #xpack.monitoring.elasticsearch.ssl.truststore.password: password
  224. #xpack.monitoring.elasticsearch.ssl.keystore.path: /path/to/file
  225. #xpack.monitoring.elasticsearch.ssl.keystore.password: password
  226. #xpack.monitoring.elasticsearch.ssl.verification_mode: certificate
  227. #xpack.monitoring.elasticsearch.sniffing: false
  228. #xpack.monitoring.collection.interval: 10s
  229. #xpack.monitoring.collection.pipeline.details.enabled: true
  230. #
  231. # X-Pack Management
  232. # https://www.elastic.co/guide/en/logstash/current/logstash-centralized-pipeline-management.html
  233. xpack.monitoring.elasticsearch.url: ["http://172.27.64.35:9200"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement