Guest User

Untitled

a guest
Apr 11th, 2018
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.84 KB | None | 0 0
  1. #=========================== Filebeat prospectors =============================
  2.  
  3. filebeat.prospectors:
  4.  
  5. # Each - is a prospector. Most options can be set at the prospector level, so
  6. # you can use different prospectors for various configurations.
  7. # Below are the prospector specific configurations.
  8.  
  9. - type: log
  10.  
  11. # Change to true to enable this prospector configuration.
  12. enabled: true
  13.  
  14. # Paths that should be crawled and fetched. Glob based paths.
  15. paths:
  16. - /TEST/*.log
  17. - /var/log/filebeat/*.log
  18. - /var/log/logstash/*.log
  19. #- c:\programdata\elasticsearch\logs\*
  20.  
  21. # Exclude lines. A list of regular expressions to match. It drops the lines that are
  22. # matching any regular expression from the list.
  23. #exclude_lines: ['^DBG']
  24.  
  25. # Include lines. A list of regular expressions to match. It exports the lines that are
  26. # matching any regular expression from the list.
  27. #include_lines: ['^ERR', '^WARN']
  28.  
  29. # Exclude files. A list of regular expressions to match. Filebeat drops the files that
  30. # are matching any regular expression from the list. By default, no files are dropped.
  31. #exclude_files: ['.gz$']
  32.  
  33. # Optional additional fields. These fields can be freely picked
  34. # to add additional information to the crawled log files for filtering
  35. #fields:
  36. # level: debug
  37. # review: 1
  38.  
  39. ### Multiline options
  40.  
  41. # Mutiline can be used for log messages spanning multiple lines. This is common
  42. # for Java Stack Traces or C-Line Continuation
  43.  
  44. # The regexp Pattern that has to be matched. The example pattern matches all lines starting with [
  45. #multiline.pattern: ^\[
  46.  
  47. # Defines if the pattern set under pattern should be negated or not. Default is false.
  48. #multiline.negate: false
  49.  
  50. # Match can be set to "after" or "before". It is used to define if lines should be append to a pattern
  51. # that was (not) matched before or after or as long as a pattern is not matched based on negate.
  52. # Note: After is the equivalent to previous and before is the equivalent to to next in Logstash
  53. #multiline.match: after
  54.  
  55.  
  56. #============================= Filebeat modules ===============================
  57.  
  58. filebeat.config.modules:
  59. # Glob pattern for configuration loading
  60. path: ${path.config}/modules.d/*.yml
  61.  
  62. # Set to true to enable config reloading
  63. reload.enabled: false
  64.  
  65. # Period on which files under path should be checked for changes
  66. #reload.period: 10s
  67.  
  68. #==================== Elasticsearch template setting ==========================
  69.  
  70. setup.template.settings:
  71. index.number_of_shards: 3
  72. #index.codec: best_compression
  73. #_source.enabled: false
  74.  
  75. #================================ General =====================================
  76.  
  77. # The name of the shipper that publishes the network data. It can be used to group
  78. # all the transactions sent by a single shipper in the web interface.
  79. #name:
  80.  
  81. # The tags of the shipper are included in their own field with each
  82. # transaction published.
  83. #tags: ["service-X", "web-tier"]
  84.  
  85. # Optional fields that you can specify to add additional information to the
  86. # output.
  87. #fields:
  88. # env: staging
  89.  
  90.  
  91. #============================== Dashboards =====================================
  92. # These settings control loading the sample dashboards to the Kibana index. Loading
  93. # the dashboards is disabled by default and can be enabled either by setting the
  94. # options here, or by using the `-setup` CLI flag or the `setup` command.
  95. #setup.dashboards.enabled: true
  96.  
  97. # The URL from where to download the dashboards archive. By default this URL
  98. # has a value which is computed based on the Beat name and version. For released
  99. # versions, this URL points to the dashboard archive on the artifacts.elastic.co
  100. # website.
  101. #setup.dashboards.url:
  102.  
  103. #============================== Kibana =====================================
  104.  
  105. # Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
  106. # This requires a Kibana endpoint configuration.
  107. setup.kibana:
  108.  
  109. # Kibana Host
  110. # Scheme and port can be left out and will be set to the default (http and 5601)
  111. # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  112. # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  113. host: "172.19.32.154:5601"
  114. username: "kibana"
  115. password: "kibana"
  116. #============================= Elastic Cloud ==================================
  117.  
  118. # These settings simplify using filebeat with the Elastic Cloud (https://cloud.elastic.co/).
  119.  
  120. # The cloud.id setting overwrites the `output.elasticsearch.hosts` and
  121. # `setup.kibana.host` options.
  122. # You can find the `cloud.id` in the Elastic Cloud web UI.
  123. #cloud.id:
  124.  
  125. # The cloud.auth setting overwrites the `output.elasticsearch.username` and
  126. # `output.elasticsearch.password` settings. The format is `<user>:<pass>`.
  127. #cloud.auth:
  128.  
  129. #================================ Outputs =====================================
  130.  
  131. # Configure what output to use when sending the data collected by the beat.
  132.  
  133. #-------------------------- Elasticsearch output ------------------------------
  134. #output.elasticsearch:
  135.  
  136. # Array of hosts to connect to.
  137. # hosts: ["localhost:9200"]
  138.  
  139. # Optional protocol and basic auth credentials.
  140. #protocol: "https"
  141. #username: "elastic"
  142. #password: "elastic"
  143.  
  144. #----------------------------- Logstash output --------------------------------
  145. output.logstash:
  146. # The Logstash hosts
  147. hosts: ["127.0.0.1:5044"]
  148.  
  149. # Optional SSL. By default is off.
  150. # List of root certificates for HTTPS server verifications
  151. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  152.  
  153. # Certificate for SSL client authentication
  154. #ssl.certificate: "/etc/pki/client/cert.pem"
  155.  
  156. # Client Certificate Key
  157. #ssl.key: "/etc/pki/client/cert.key"
  158.  
  159. #================================ Logging =====================================
  160.  
  161. # Sets log level. The default log level is info.
  162. # Available log levels are: error, warning, info, debug
  163. #logging.level: debug
  164.  
  165. # At debug level, you can selectively enable logging only for some components.
  166. # To enable all selectors use ["*"]. Examples of other selectors are "beat",
  167. # "publish", "service".
  168. #logging.selectors: ["*"]
  169.  
  170. #============================== Xpack Monitoring ===============================
  171. # filebeat can export internal metrics to a central Elasticsearch monitoring
  172. # cluster. This requires xpack monitoring to be enabled in Elasticsearch. The
  173. # reporting is disabled by default.
  174.  
  175. # Set to true to enable the monitoring reporter.
  176. #xpack.monitoring.enabled: false
  177.  
  178. # Uncomment to send the metrics to Elasticsearch. Most settings from the
  179. # Elasticsearch output are accepted here as well. Any setting that is not set is
  180. # automatically inherited from the Elasticsearch output configuration, so if you
  181. # have the Elasticsearch output configured, you can simply uncomment the
  182. # following line.
  183. #xpack.monitoring.elasticsearch:
Advertisement
Add Comment
Please, Sign In to add comment