Advertisement
Guest User

Untitled

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