Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 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.  
  19.  
  20. # Paths that should be crawled and fetched. Glob based paths.
  21. paths:
  22. - E:ELK-STACKlogstash-tutorial-dataset.log
  23. input_type: log
  24. document_type: apachelogs
  25. # document_type: apachelogs
  26.  
  27.  
  28.  
  29. #paths:
  30. # - E:ELK-STACKmylogs.log
  31. #fields: {log_type: mypersonal-logs}
  32. #- C:LogsGatewayServiceGatewayService-Processor.Transactions-20170810
  33. # - C:ECLIPSE WORKSPACEjcgA1jcgA1logs-logstash.*
  34. # Exclude lines. A list of regular expressions to match. It drops the lines that are
  35. # matching any regular expression from the list.
  36. #exclude_lines: ["^DBG"]
  37.  
  38. # Include lines. A list of regular expressions to match. It exports the lines that are
  39. # matching any regular expression from the list.
  40. #include_lines: ["^ERR", "^WARN"]
  41.  
  42. # Exclude files. A list of regular expressions to match. Filebeat drops the files that
  43. # are matching any regular expression from the list. By default, no files are dropped.
  44. #exclude_files: [".gz$"]
  45.  
  46. # Optional additional fields. These field can be freely picked
  47. # to add additional information to the crawled log files for filtering
  48. #fields:
  49. # level: debug
  50. # review: 1
  51.  
  52. ### Multiline options
  53.  
  54. # Mutiline can be used for log messages spanning multiple lines. This is common
  55. # for Java Stack Traces or C-Line Continuation
  56.  
  57. # The regexp Pattern that has to be matched. The example pattern matches all lines starting with [
  58. #multiline.pattern: ^[
  59.  
  60. # Defines if the pattern set under pattern should be negated or not. Default is false.
  61. #multiline.negate: false
  62.  
  63. # Match can be set to "after" or "before". It is used to define if lines should be append to a pattern
  64. # that was (not) matched before or after or as long as a pattern is not matched based on negate.
  65. # Note: After is the equivalent to previous and before is the equivalent to to next in Logstash
  66. #multiline.match: after
  67.  
  68.  
  69. #================================ General =====================================
  70.  
  71. # The name of the shipper that publishes the network data. It can be used to group
  72. # all the transactions sent by a single shipper in the web interface.
  73. #name:
  74.  
  75. # The tags of the shipper are included in their own field with each
  76. # transaction published.
  77. #tags: ["service-X", "web-tier"]
  78.  
  79. # Optional fields that you can specify to add additional information to the
  80. # output.
  81. #fields:
  82. # env: staging
  83.  
  84. #================================ Outputs =====================================
  85.  
  86. # Configure what outputs to use when sending the data collected by the beat.
  87. # Multiple outputs may be used.
  88.  
  89. #-------------------------- Elasticsearch output ------------------------------
  90. #output.elasticsearch:
  91. # Array of hosts to connect to.
  92. # hosts: ["localhost:9200"]
  93.  
  94. # Optional protocol and basic auth credentials.
  95. #protocol: "https"
  96. #username: "elastic"
  97. #password: "changeme"
  98.  
  99. #----------------------------- Logstash output --------------------------------
  100. output.logstash:
  101. # The Logstash hosts
  102. hosts: ["localhost:5043"]
  103.  
  104. # Optional SSL. By default is off.
  105. # List of root certificates for HTTPS server verifications
  106. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  107.  
  108. # Certificate for SSL client authentication
  109. #ssl.certificate: "/etc/pki/client/cert.pem"
  110.  
  111. # Client Certificate Key
  112. #ssl.key: "/etc/pki/client/cert.key"
  113.  
  114. #================================ Logging =====================================
  115.  
  116. # Sets log level. The default log level is info.
  117. # Available log levels are: critical, error, warning, info, debug
  118. #logging.level: debug
  119.  
  120. # At debug level, you can selectively enable logging only for some components.
  121. # To enable all selectors use ["*"]. Examples of other selectors are "beat",
  122. # "publish", "service".
  123. #logging.selectors: ["*"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement