Advertisement
Guest User

Untitled

a guest
Apr 12th, 2018
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 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/httpd/*.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. beat.name: HRA
  41. tag_hostname: "QA Server"
  42. # host: HRA
  43. # source: HRA
  44. # level: debug
  45. # review: 1
  46.  
  47. ### Multiline options
  48.  
  49. # Mutiline can be used for log messages spanning multiple lines. This is common
  50. # for Java Stack Traces or C-Line Continuation
  51.  
  52. # The regexp Pattern that has to be matched. The example pattern matches all lines starting with [
  53. #multiline.pattern: ^\[
  54.  
  55. # Defines if the pattern set under pattern should be negated or not. Default is false.
  56. #multiline.negate: false
  57.  
  58. # Match can be set to "after" or "before". It is used to define if lines should be append to a pattern
  59. # that was (not) matched before or after or as long as a pattern is not matched based on negate.
  60. # Note: After is the equivalent to previous and before is the equivalent to to next in Logstash
  61. #multiline.match: after
  62.  
  63.  
  64. #================================ General =====================================
  65.  
  66. # The name of the shipper that publishes the network data. It can be used to group
  67. # all the transactions sent by a single shipper in the web interface.
  68. #name:
  69.  
  70. # The tags of the shipper are included in their own field with each
  71. # transaction published.
  72. #tags: ["service-X", "web-tier"]
  73. tags : ["HRA"]
  74. # Optional fields that you can specify to add additional information to the
  75. # output.
  76. #fields:
  77. # env: staging
  78.  
  79. #================================ Outputs =====================================
  80.  
  81. # Configure what outputs to use when sending the data collected by the beat.
  82. # Multiple outputs may be used.
  83.  
  84. #-------------------------- Elasticsearch output ------------------------------
  85. #output.elasticsearch:
  86. # Array of hosts to connect to.
  87. # hosts: ["localhost:9200"]
  88.  
  89. # Optional protocol and basic auth credentials.
  90. #protocol: "https"
  91. #username: "elastic"
  92. #password: "changeme"
  93.  
  94. #----------------------------- Logstash output --------------------------------
  95. output.logstash:
  96. # The Logstash hosts
  97. hosts: ["X.X.X.X:5044"]
  98. #bulk_max_size: 1024
  99. # Optional SSL. By default is off.
  100. # List of root certificates for HTTPS server verifications
  101. ssl.certificate_authorities: ["/etc/pki/tls/certs/logstash-forwarder.crt"]
  102.  
  103. # Certificate for SSL client authentication
  104. #ssl.certificate: "/etc/pki/client/cert.pem"
  105.  
  106. # Client Certificate Key
  107. #ssl.key: "/etc/pki/client/cert.key"
  108.  
  109. #================================ Logging =====================================
  110.  
  111. # Sets log level. The default log level is info.
  112. # Available log levels are: critical, error, warning, info, debug
  113. #logging.level: debug
  114.  
  115. # At debug level, you can selectively enable logging only for some components.
  116. # To enable all selectors use ["*"]. Examples of other selectors are "beat",
  117. # "publish", "service".
  118. #logging.selectors: ["*"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement