Advertisement
Guest User

Untitled

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