filebeat.yml 4.1 KB

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