Guest User

Untitled

a guest
Oct 6th, 2021
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.15 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. #
  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. # The ID of the pipeline.
  33. #
  34. # pipeline.id: main
  35. #
  36. # Set the number of workers that will, in parallel, execute the filters+outputs
  37. # stage of the pipeline.
  38. #
  39. # This defaults to the number of the host's CPU cores.
  40. #
  41. # pipeline.workers: 2
  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 in milliseconds while polling for the next event
  48. # before dispatching an undersized batch to filters+outputs
  49. #
  50. # pipeline.batch.delay: 50
  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. # Set the pipeline event ordering. Options are "auto" (the default), "true" or "false".
  61. # "auto" will automatically enable ordering if the 'pipeline.workers' setting
  62. # is also set to '1'.
  63. # "true" will enforce ordering on the pipeline and prevent logstash from starting
  64. # if there are multiple workers.
  65. # "false" will disable any extra processing necessary for preserving ordering.
  66. #
  67. # pipeline.ordered: auto
  68. #
  69. # Sets the pipeline's default value for `ecs_compatibility`, a setting that is
  70. # available to plugins that implement an ECS Compatibility mode for use with
  71. # the Elastic Common Schema.
  72. # Possible values are:
  73. # - disabled (default)
  74. # - v1
  75. # - v8
  76. # CAVEAT: use of this configuration for anything other than `disabled`
  77. # is considered BETA until the General Availability of
  78. # Logstash 8.0.0. As we continue to release updated plugins with ECS-Compatibility
  79. # modes, opting into them at a pipeline or process level will cause you to
  80. # automatically consume breaking changes with each upgrade, which may change the
  81. # shape of data your pipeline produces.
  82. #
  83. # pipeline.ecs_compatibility: disabled
  84. #
  85. # ------------ Pipeline Configuration Settings --------------
  86. #
  87. # Where to fetch the pipeline configuration for the main pipeline
  88. #
  89. path.config: "/etc/logstash/conf.d"
  90. #
  91. # Pipeline configuration string for the main pipeline
  92. #
  93. # config.string:
  94. #
  95. # At startup, test if the configuration is valid and exit (dry run)
  96. #
  97. # config.test_and_exit: false
  98. #
  99. # Periodically check if the configuration has changed and reload the pipeline
  100. # This can also be triggered manually through the SIGHUP signal
  101. #
  102. # config.reload.automatic: false
  103. #
  104. # How often to check if the pipeline configuration has changed (in seconds)
  105. # Note that the unit value (s) is required. Values without a qualifier (e.g. 60)
  106. # are treated as nanoseconds.
  107. # Setting the interval this way is not recommended and might change in later versions.
  108. #
  109. # config.reload.interval: 3s
  110. #
  111. # Show fully compiled configuration as debug log message
  112. # NOTE: --log.level must be 'debug'
  113. #
  114. # config.debug: false
  115. #
  116. # When enabled, process escaped characters such as \n and \" in strings in the
  117. # pipeline configuration files.
  118. #
  119. # config.support_escapes: false
  120. #
  121. # ------------ HTTP API Settings -------------
  122. # Define settings related to the HTTP API here.
  123. #
  124. # The HTTP API is enabled by default. It can be disabled, but features that rely
  125. # on it will not work as intended.
  126. # http.enabled: true
  127. #
  128. # By default, the HTTP API is bound to only the host's local loopback interface,
  129. # ensuring that it is not accessible to the rest of the network. Because the API
  130. # includes neither authentication nor authorization and has not been hardened or
  131. # tested for use as a publicly-reachable API, binding to publicly accessible IPs
  132. # should be avoided where possible.
  133. #
  134. # http.host: 127.0.0.1
  135. #
  136. # The HTTP API web server will listen on an available port from the given range.
  137. # Values can be specified as a single port (e.g., `9600`), or an inclusive range
  138. # of ports (e.g., `9600-9700`).
  139. #
  140. # http.port: 9600-9700
  141. #
  142. # ------------ Module Settings ---------------
  143. # Define modules here. Modules definitions must be defined as an array.
  144. # The simple way to see this is to prepend each `name` with a `-`, and keep
  145. # all associated variables under the `name` they are associated with, and
  146. # above the next, like this:
  147. #
  148. # modules:
  149. # - name: MODULE_NAME
  150. # var.PLUGINTYPE1.PLUGINNAME1.KEY1: VALUE
  151. # var.PLUGINTYPE1.PLUGINNAME1.KEY2: VALUE
  152. # var.PLUGINTYPE2.PLUGINNAME1.KEY1: VALUE
  153. # var.PLUGINTYPE3.PLUGINNAME3.KEY1: VALUE
  154. #
  155. # Module variable names must be in the format of
  156. #
  157. # var.PLUGIN_TYPE.PLUGIN_NAME.KEY
  158. #
  159. # modules:
  160. #
  161. # ------------ Cloud Settings ---------------
  162. # Define Elastic Cloud settings here.
  163. # Format of cloud.id is a base64 value e.g. dXMtZWFzdC0xLmF3cy5mb3VuZC5pbyRub3RhcmVhbCRpZGVudGlmaWVy
  164. # and it may have an label prefix e.g. staging:dXMtZ...
  165. # This will overwrite 'var.elasticsearch.hosts' and 'var.kibana.host'
  166. # cloud.id: <identifier>
  167. #
  168. # Format of cloud.auth is: <user>:<pass>
  169. # This is optional
  170. # If supplied this will overwrite 'var.elasticsearch.username' and 'var.elasticsearch.password'
  171. # If supplied this will overwrite 'var.kibana.username' and 'var.kibana.password'
  172. # cloud.auth: elastic:<password>
  173. #
  174. # ------------ Queuing Settings --------------
  175. #
  176. # Internal queuing model, "memory" for legacy in-memory based queuing and
  177. # "persisted" for disk-based acked queueing. Defaults is memory
  178. #
  179. # queue.type: memory
  180. #
  181. # If using queue.type: persisted, the directory path where the data files will be stored.
  182. # Default is path.data/queue
  183. #
  184. # path.queue:
  185. #
  186. # If using queue.type: persisted, the page data files size. The queue data consists of
  187. # append-only data files separated into pages. Default is 64mb
  188. #
  189. # queue.page_capacity: 64mb
  190. #
  191. # If using queue.type: persisted, the maximum number of unread events in the queue.
  192. # Default is 0 (unlimited)
  193. #
  194. # queue.max_events: 0
  195. #
  196. # If using queue.type: persisted, the total capacity of the queue in number of bytes.
  197. # If you would like more unacked events to be buffered in Logstash, you can increase the
  198. # capacity using this setting. Please make sure your disk drive has capacity greater than
  199. # the size specified here. If both max_bytes and max_events are specified, Logstash will pick
  200. # whichever criteria is reached first
  201. # Default is 1024mb or 1gb
  202. #
  203. # queue.max_bytes: 1024mb
  204. #
  205. # If using queue.type: persisted, the maximum number of acked events before forcing a checkpoint
  206. # Default is 1024, 0 for unlimited
  207. #
  208. # queue.checkpoint.acks: 1024
  209. #
  210. # If using queue.type: persisted, the maximum number of written events before forcing a checkpoint
  211. # Default is 1024, 0 for unlimited
  212. #
  213. # queue.checkpoint.writes: 1024
  214. #
  215. # If using queue.type: persisted, the interval in milliseconds when a checkpoint is forced on the head page
  216. # Default is 1000, 0 for no periodic checkpoint.
  217. #
  218. # queue.checkpoint.interval: 1000
  219. #
  220. # ------------ Dead-Letter Queue Settings --------------
  221. # Flag to turn on dead-letter queue.
  222. #
  223. # dead_letter_queue.enable: false
  224.  
  225. # If using dead_letter_queue.enable: true, the maximum size of each dead letter queue. Entries
  226. # will be dropped if they would increase the size of the dead letter queue beyond this setting.
  227. # Default is 1024mb
  228. # dead_letter_queue.max_bytes: 1024mb
  229.  
  230. # If using dead_letter_queue.enable: true, the interval in milliseconds where if no further events eligible for the DLQ
  231. # have been created, a dead letter queue file will be written. A low value here will mean that more, smaller, queue files
  232. # may be written, while a larger value will introduce more latency between items being "written" to the dead letter queue, and
  233. # being available to be read by the dead_letter_queue input when items are are written infrequently.
  234. # Default is 5000.
  235. #
  236. # dead_letter_queue.flush_interval: 5000
  237.  
  238. # If using dead_letter_queue.enable: true, the directory path where the data files will be stored.
  239. # Default is path.data/dead_letter_queue
  240. #
  241. # path.dead_letter_queue:
  242. #
  243. # ------------ Metrics Settings --------------
  244. #
  245. # Bind address for the metrics REST endpoint
  246. #
  247. # http.host: "127.0.0.1"
  248. #
  249. # Bind port for the metrics REST endpoint, this option also accept a range
  250. # (9600-9700) and logstash will pick up the first available ports.
  251. #
  252. # http.port: 9600-9700
  253. #
  254. # ------------ Debugging Settings --------------
  255. #
  256. # Options for log.level:
  257. # * fatal
  258. # * error
  259. # * warn
  260. # * info (default)
  261. # * debug
  262. # * trace
  263. #
  264. # log.level: info
  265. # path.logs:
  266. #
  267. # ------------ Other Settings --------------
  268. #
  269. # Where to find custom plugins
  270. # path.plugins: []
  271. #
  272. # Flag to output log lines of each pipeline in its separate log file. Each log filename contains the pipeline.name
  273. # Default is false
  274. # pipeline.separate_logs: false
  275. #
  276. # ------------ X-Pack Settings (not applicable for OSS build)--------------
  277. #
  278. # X-Pack Monitoring
  279. # https://www.elastic.co/guide/en/logstash/current/monitoring-logstash.html
  280. #xpack.monitoring.enabled: false
  281. #xpack.monitoring.elasticsearch.username: logstash_system
  282. #xpack.monitoring.elasticsearch.password: password
  283. #xpack.monitoring.elasticsearch.proxy: ["http://proxy:port"]
  284. #xpack.monitoring.elasticsearch.hosts: ["https://es1:9200", "https://es2:9200"]
  285. # an alternative to hosts + username/password settings is to use cloud_id/cloud_auth
  286. #xpack.monitoring.elasticsearch.cloud_id: monitoring_cluster_id:xxxxxxxxxx
  287. #xpack.monitoring.elasticsearch.cloud_auth: logstash_system:password
  288. # another authentication alternative is to use an Elasticsearch API key
  289. #xpack.monitoring.elasticsearch.api_key: "id:api_key"
  290. #xpack.monitoring.elasticsearch.ssl.certificate_authority: [ "/path/to/ca.crt" ]
  291. #xpack.monitoring.elasticsearch.ssl.truststore.path: path/to/file
  292. #xpack.monitoring.elasticsearch.ssl.truststore.password: password
  293. #xpack.monitoring.elasticsearch.ssl.keystore.path: /path/to/file
  294. #xpack.monitoring.elasticsearch.ssl.keystore.password: password
  295. #xpack.monitoring.elasticsearch.ssl.verification_mode: certificate
  296. #xpack.monitoring.elasticsearch.sniffing: false
  297. #xpack.monitoring.collection.interval: 10s
  298. #xpack.monitoring.collection.pipeline.details.enabled: true
  299. #
  300. # X-Pack Management
  301. # https://www.elastic.co/guide/en/logstash/current/logstash-centralized-pipeline-management.html
  302. #xpack.management.enabled: false
  303. #xpack.management.pipeline.id: ["main", "apache_logs"]
  304. #xpack.management.elasticsearch.username: logstash_admin_user
  305. #xpack.management.elasticsearch.password: password
  306. #xpack.management.elasticsearch.proxy: ["http://proxy:port"]
  307. #xpack.management.elasticsearch.hosts: ["https://es1:9200", "https://es2:9200"]
  308. # an alternative to hosts + username/password settings is to use cloud_id/cloud_auth
  309. #xpack.management.elasticsearch.cloud_id: management_cluster_id:xxxxxxxxxx
  310. #xpack.management.elasticsearch.cloud_auth: logstash_admin_user:password
  311. # another authentication alternative is to use an Elasticsearch API key
  312. #xpack.management.elasticsearch.api_key: "id:api_key"
  313. #xpack.management.elasticsearch.ssl.certificate_authority: [ "/path/to/ca.crt" ]
  314. #xpack.management.elasticsearch.ssl.truststore.path: /path/to/file
  315. #xpack.management.elasticsearch.ssl.truststore.password: password
  316. #xpack.management.elasticsearch.ssl.keystore.path: /path/to/file
  317. #xpack.management.elasticsearch.ssl.keystore.password: password
  318. #xpack.management.elasticsearch.ssl.verification_mode: certificate
  319. #xpack.management.elasticsearch.sniffing: false
  320. #xpack.management.logstash.poll_interval: 5s
  321.  
  322. # X-Pack GeoIP plugin
  323. # https://www.elastic.co/guide/en/logstash/current/plugins-filters-geoip.html#plugins-filters-geoip-manage_update
  324. #xpack.geoip.download.endpoint: "https://geoip.elastic.co/v1/database"
Add Comment
Please, Sign In to add comment