filebeat.yml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. ###################### Filebeat Configuration Example #########################
  2. # This file is an example configuration file highlighting only the most common
  3. # options. The filebeat.reference.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. # For more available modules and options, please see the filebeat.reference.yml sample
  9. # configuration file.
  10. #=========================== Filebeat prospectors =============================
  11. filebeat.prospectors:
  12. # Each - is a prospector. Most options can be set at the prospector level, so
  13. # you can use different prospectors for various configurations.
  14. # Below are the prospector specific configurations.
  15. - type: log
  16. enabled: false
  17. paths:
  18. - /var/log/*.log
  19. - type: log
  20. enabled: true
  21. paths:
  22. - /var/log/grafana/grafana.log
  23. include_lines: ['lvl=info']
  24. fields:
  25. app: grafana
  26. level: info
  27. - type: log
  28. enabled: true
  29. paths:
  30. - /var/log/grafana/grafana.log
  31. include_lines: ['lvl=eror']
  32. fields:
  33. app: grafana
  34. level: error
  35. - type: log
  36. enabled: true
  37. paths:
  38. - /var/log/grafana/grafana.log
  39. include_lines: ['lvl=warn']
  40. fields:
  41. app: grafana
  42. level: warning
  43. - type: log
  44. enabled: true
  45. paths:
  46. - /var/log/grafana/grafana.log
  47. include_lines: ['lvl=dbug']
  48. fields:
  49. app: grafana
  50. level: debug
  51. #============================= Filebeat modules ===============================
  52. filebeat.config.modules:
  53. # Glob pattern for configuration loading
  54. path: ${path.config}/modules.d/*.yml
  55. # Set to true to enable config reloading
  56. reload.enabled: false
  57. # Period on which files under path should be checked for changes
  58. #reload.period: 10s
  59. #==================== Elasticsearch template setting ==========================
  60. setup.template.settings:
  61. index.number_of_shards: 3
  62. #index.codec: best_compression
  63. #_source.enabled: false
  64. #================================ General =====================================
  65. # The name of the shipper that publishes the network data. It can be used to group
  66. # all the transactions sent by a single shipper in the web interface.
  67. #name:
  68. # The tags of the shipper are included in their own field with each
  69. # transaction published.
  70. #tags: ["service-X", "web-tier"]
  71. # Optional fields that you can specify to add additional information to the
  72. # output.
  73. #fields:
  74. # env: staging
  75. #============================== Dashboards =====================================
  76. # These settings control loading the sample dashboards to the Kibana index. Loading
  77. # the dashboards is disabled by default and can be enabled either by setting the
  78. # options here, or by using the `-setup` CLI flag or the `setup` command.
  79. #setup.dashboards.enabled: false
  80. # The URL from where to download the dashboards archive. By default this URL
  81. # has a value which is computed based on the Beat name and version. For released
  82. # versions, this URL points to the dashboard archive on the artifacts.elastic.co
  83. # website.
  84. #setup.dashboards.url:
  85. #============================== Kibana =====================================
  86. # Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
  87. # This requires a Kibana endpoint configuration.
  88. setup.kibana:
  89. # Kibana Host
  90. # Scheme and port can be left out and will be set to the default (http and 5601)
  91. # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  92. # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  93. #host: "localhost:5601"
  94. #============================= Elastic Cloud ==================================
  95. # These settings simplify using filebeat with the Elastic Cloud (https://cloud.elastic.co/).
  96. # The cloud.id setting overwrites the `output.elasticsearch.hosts` and
  97. # `setup.kibana.host` options.
  98. # You can find the `cloud.id` in the Elastic Cloud web UI.
  99. #cloud.id:
  100. # The cloud.auth setting overwrites the `output.elasticsearch.username` and
  101. # `output.elasticsearch.password` settings. The format is `<user>:<pass>`.
  102. #cloud.auth:
  103. #================================ Outputs =====================================
  104. # Configure what output to use when sending the data collected by the beat.
  105. #-------------------------- Elasticsearch output ------------------------------
  106. output.elasticsearch:
  107. # Array of hosts to connect to.
  108. hosts: ["elasticsearch6:9200"]
  109. # Optional protocol and basic auth credentials.
  110. #protocol: "https"
  111. #username: "elastic"
  112. #password: "changeme"
  113. #----------------------------- Logstash output --------------------------------
  114. #output.logstash:
  115. # The Logstash hosts
  116. #hosts: ["localhost:5044"]
  117. # Optional SSL. By default is off.
  118. # List of root certificates for HTTPS server verifications
  119. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  120. # Certificate for SSL client authentication
  121. #ssl.certificate: "/etc/pki/client/cert.pem"
  122. # Client Certificate Key
  123. #ssl.key: "/etc/pki/client/cert.key"
  124. #================================ Logging =====================================
  125. # Sets log level. The default log level is info.
  126. # Available log levels are: error, warning, info, debug
  127. #logging.level: debug
  128. # At debug level, you can selectively enable logging only for some components.
  129. # To enable all selectors use ["*"]. Examples of other selectors are "beat",
  130. # "publish", "service".
  131. #logging.selectors: ["*"]
  132. #============================== Xpack Monitoring ===============================
  133. # filebeat can export internal metrics to a central Elasticsearch monitoring
  134. # cluster. This requires xpack monitoring to be enabled in Elasticsearch. The
  135. # reporting is disabled by default.
  136. # Set to true to enable the monitoring reporter.
  137. #xpack.monitoring.enabled: false
  138. # Uncomment to send the metrics to Elasticsearch. Most settings from the
  139. # Elasticsearch output are accepted here as well. Any setting that is not set is
  140. # automatically inherited from the Elasticsearch output configuration, so if you
  141. # have the Elasticsearch output configured, you can simply uncomment the
  142. # following line.
  143. #xpack.monitoring.elasticsearch: