Guest User

filebeat

a guest
Dec 15th, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. ###################### Filebeat Configuration Example #########################
  2.  
  3. # This file is an example configuration file highlighting only the most common
  4. # options. The filebeat.full.yml file from the same directory contains all the
  5. # supported options with more comments. You can use it as a reference.
  6. #
  7. # You can find the full configuration reference here:
  8. # https://www.elastic.co/guide/en/beats/filebeat/index.html
  9.  
  10. #=========================== Filebeat prospectors =============================
  11.  
  12. filebeat.prospectors:
  13.  
  14. # Each - is a prospector. Most options can be set at the prospector level, so
  15. # you can use different prospectors for various configurations.
  16. # Below are the prospector specific configurations.
  17.  
  18. - input_type: log
  19.  
  20. # Paths that should be crawled and fetched. Glob based paths.
  21. paths:
  22. - /var/log/*.log
  23. #- c:\programdata\elasticsearch\logs\*
  24.  
  25. # Exclude lines. A list of regular expressions to match. It drops the lines that are
  26. # matching any regular expression from the list.
  27. #exclude_lines: ["^DBG"]
  28.  
  29. # Include lines. A list of regular expressions to match. It exports the lines that are
  30. # matching any regular expression from the list.
  31. #include_lines: ["^ERR", "^WARN"]
  32.  
  33. # Exclude files. A list of regular expressions to match. Filebeat drops the files that
  34. # are matching any regular expression from the list. By default, no files are dropped.
  35. #exclude_files: [".gz$"]
  36.  
  37. # Optional additional fields. These field can be freely picked
  38. # to add additional information to the crawled log files for filtering
  39. #fields:
  40. # level: debug
  41. # review: 1
  42.  
  43. ### Multiline options
  44.  
  45. # Mutiline can be used for log messages spanning multiple lines. This is common
  46. # for Java Stack Traces or C-Line Continuation
  47.  
  48. # The regexp Pattern that has to be matched. The example pattern matches all lines starting with [
  49. #multiline.pattern: ^\[
  50.  
  51. # Defines if the pattern set under pattern should be negated or not. Default is false.
  52. #multiline.negate: false
  53.  
  54. # Match can be set to "after" or "before". It is used to define if lines should be append to a pattern
  55. # that was (not) matched before or after or as long as a pattern is not matched based on negate.
  56. # Note: After is the equivalent to previous and before is the equivalent to to next in Logstash
  57. #multiline.match: after
  58.  
  59.  
  60. #================================ General =====================================
  61.  
  62. # The name of the shipper that publishes the network data. It can be used to group
  63. # all the transactions sent by a single shipper in the web interface.
  64. #name:
  65.  
  66. # The tags of the shipper are included in their own field with each
  67. # transaction published.
  68. #tags: ["service-X", "web-tier"]
  69.  
  70. # Optional fields that you can specify to add additional information to the
  71. # output.
  72. #fields:
  73. # env: staging
  74.  
  75. #================================ Outputs =====================================
  76.  
  77. # Configure what outputs to use when sending the data collected by the beat.
  78. # Multiple outputs may be used.
  79.  
  80. #-------------------------- Elasticsearch output ------------------------------
  81. output.elasticsearch:
  82. # Array of hosts to connect to.
  83. hosts: ["localhost:9200"]
  84.  
  85. # Optional protocol and basic auth credentials.
  86. #protocol: "https"
  87. #username: "elastic"
  88. #password: "changeme"
  89.  
  90. #----------------------------- Logstash output --------------------------------
  91. #output.logstash:
  92. # The Logstash hosts
  93. #hosts: ["localhost:5044"]
  94.  
  95. # Optional SSL. By default is off.
  96. # List of root certificates for HTTPS server verifications
  97. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  98.  
  99. # Certificate for SSL client authentication
  100. #ssl.certificate: "/etc/pki/client/cert.pem"
  101.  
  102. # Client Certificate Key
  103. #ssl.key: "/etc/pki/client/cert.key"
  104.  
  105. #================================ Logging =====================================
  106.  
  107. # Sets log level. The default log level is info.
  108. # Available log levels are: critical, error, warning, info, debug
  109. #logging.level: debug
  110.  
  111. # At debug level, you can selectively enable logging only for some components.
  112. # To enable all selectors use ["*"]. Examples of other selectors are "beat",
  113. # "publish", "service".
  114. #logging.selectors: ["*"]
Add Comment
Please, Sign In to add comment