Guest User

Untitled

a guest
Sep 15th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.33 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 inputs ===============================
  14.  
  15. filebeat.inputs:
  16.  
  17. # Each - is an input. Most options can be set at the input level, so
  18. # you can use different inputs for various configurations.
  19. # Below are the input specific configurations.
  20.  
  21. - type: log
  22.  
  23. # Change to true to enable this input configuration.
  24. enabled: true
  25.  
  26. # Paths that should be crawled and fetched. Glob based paths.
  27. paths:
  28. - /var/log/*.log
  29. #- c:\programdata\elasticsearch\logs\*
  30. - /var/log/system.log
  31. - type: log
  32. paths:
  33. - "/var/log/apache2/*"
  34. fields:
  35. apache: true
  36. fields_under_root: true
  37.  
  38. # Exclude lines. A list of regular expressions to match. It drops the lines that are
  39. # matching any regular expression from the list.
  40. #exclude_lines: ['^DBG']
  41.  
  42. # Include lines. A list of regular expressions to match. It exports the lines that are
  43. # matching any regular expression from the list.
  44. #include_lines: ['^ERR', '^WARN']
  45.  
  46. # Exclude files. A list of regular expressions to match. Filebeat drops the files that
  47. # are matching any regular expression from the list. By default, no files are dropped.
  48. #exclude_files: ['.gz$']
  49.  
  50. # Optional additional fields. These fields can be freely picked
  51. # to add additional information to the crawled log files for filtering
  52. #fields:
  53. # level: debug
  54. # review: 1
  55.  
  56. ### Multiline options
  57.  
  58. # Multiline can be used for log messages spanning multiple lines. This is common
  59. # for Java Stack Traces or C-Line Continuation
  60.  
  61. # The regexp Pattern that has to be matched. The example pattern matches all lines starting with [
  62. #multiline.pattern: ^\[
  63.  
  64. # Defines if the pattern set under pattern should be negated or not. Default is false.
  65. #multiline.negate: false
  66.  
  67. # Match can be set to "after" or "before". It is used to define if lines should be append to a pattern
  68. # that was (not) matched before or after or as long as a pattern is not matched based on negate.
  69. # Note: After is the equivalent to previous and before is the equivalent to to next in Logstash
  70. #multiline.match: after
  71.  
  72. # ============================== Filebeat modules ==============================
  73.  
  74. filebeat.config.modules:
  75. # Glob pattern for configuration loading
  76. path: "C:\\Program Files\\filebeat\\module\\apache\\*.yml"
  77. # Set to true to enable config reloading
  78. reload.enabled: false
  79.  
  80. # Period on which files under path should be checked for changes
  81. #reload.period: 10s
  82.  
  83. # ======================= Elasticsearch template setting =======================
  84.  
  85. setup.template.settings:
  86. index.number_of_shards: 1
  87. #index.codec: best_compression
  88. #_source.enabled: false
  89.  
  90.  
  91. # ================================== General ===================================
  92.  
  93. # The name of the shipper that publishes the network data. It can be used to group
  94. # all the transactions sent by a single shipper in the web interface.
  95. #name:
  96.  
  97. # The tags of the shipper are included in their own field with each
  98. # transaction published.
  99. #tags: ["service-X", "web-tier"]
  100.  
  101. # Optional fields that you can specify to add additional information to the
  102. # output.
  103. #fields:
  104. # env: staging
  105.  
  106. # ================================= Dashboards =================================
  107. # These settings control loading the sample dashboards to the Kibana index. Loading
  108. # the dashboards is disabled by default and can be enabled either by setting the
  109. # options here or by using the `setup` command.
  110. #setup.dashboards.enabled: false
  111.  
  112. # The URL from where to download the dashboards archive. By default this URL
  113. # has a value which is computed based on the Beat name and version. For released
  114. # versions, this URL points to the dashboard archive on the artifacts.elastic.co
  115. # website.
  116. #setup.dashboards.url:
  117.  
  118. # =================================== Kibana ===================================
  119.  
  120. # Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
  121. # This requires a Kibana endpoint configuration.
  122. setup.kibana:
  123.  
  124. # Kibana Host
  125. # Scheme and port can be left out and will be set to the default (http and 5601)
  126. # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  127. # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  128. #host: "localhost:5601"
  129.  
  130. # Kibana Space ID
  131. # ID of the Kibana Space into which the dashboards should be loaded. By default,
  132. # the Default Space will be used.
  133. #space.id:
  134.  
  135. # =============================== Elastic Cloud ================================
  136.  
  137. # These settings simplify using Filebeat with the Elastic Cloud (https://cloud.elastic.co/).
  138.  
  139. # The cloud.id setting overwrites the `output.elasticsearch.hosts` and
  140. # `setup.kibana.host` options.
  141. # You can find the `cloud.id` in the Elastic Cloud web UI.
  142. #cloud.id:
  143.  
  144. # The cloud.auth setting overwrites the `output.elasticsearch.username` and
  145. # `output.elasticsearch.password` settings. The format is `<user>:<pass>`.
  146. #cloud.auth:
  147.  
  148. # ================================== Outputs ===================================
  149.  
  150. # Configure what output to use when sending the data collected by the beat.
  151.  
  152. # ---------------------------- Elasticsearch Output ----------------------------
  153. output.elasticsearch:
  154. # Array of hosts to connect to.
  155. hosts: ["localhost:5601"]
  156.  
  157. output.elasticsearch:
  158. #hosts: ["https://perftcares001.chq.ei:24565/ressrvc/RestrictedEntityScreeningService"]
  159. paths: "C:\\temp\\ressrvc6.log"
  160. username: "ressrvc"
  161. password: "st@rtup1"
  162. setup.kibana:
  163. hosts: "localhost:5601"
  164. # Protocol - either `http` (default) or `https`.
  165. #protocol: "https"
  166.  
  167. # Authentication credentials - either API key or username/password.
  168. #api_key: "id:api_key"
  169. #username: "elastic"
  170. #password: "changeme"
  171.  
  172. # ------------------------------ Logstash Output -------------------------------
  173. #output.logstash:
  174. # The Logstash hosts
  175. # hosts: ["localhost:5601"]
  176.  
  177. # Optional SSL. By default is off.
  178. # List of root certificates for HTTPS server verifications
  179. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  180.  
  181. # Certificate for SSL client authentication
  182. #ssl.certificate: "/etc/pki/client/cert.pem"
  183.  
  184. # Client Certificate Key
  185. #ssl.key: "/etc/pki/client/cert.key"
  186.  
  187. # ================================= Processors =================================
  188. processors:
  189. - add_host_metadata:
  190. when.not.contains.tags: forwarded
  191. - add_cloud_metadata: ~
  192. - add_docker_metadata: ~
  193. - add_kubernetes_metadata: ~
  194.  
  195. # ================================== Logging ===================================
  196.  
  197. # Sets log level. The default log level is info.
  198. # Available log levels are: error, warning, info, debug
  199. #logging.level: debug
  200.  
  201. # At debug level, you can selectively enable logging only for some components.
  202. # To enable all selectors use ["*"]. Examples of other selectors are "beat",
  203. # "publish", "service".
  204. #logging.selectors: ["*"]
  205.  
  206. # ============================= X-Pack Monitoring ==============================
  207. # Filebeat can export internal metrics to a central Elasticsearch monitoring
  208. # cluster. This requires xpack monitoring to be enabled in Elasticsearch. The
  209. # reporting is disabled by default.
  210.  
  211. # Set to true to enable the monitoring reporter.
  212. #monitoring.enabled: false
  213.  
  214. # Sets the UUID of the Elasticsearch cluster under which monitoring data for this
  215. # Filebeat instance will appear in the Stack Monitoring UI. If output.elasticsearch
  216. # is enabled, the UUID is derived from the Elasticsearch cluster referenced by output.elasticsearch.
  217. #monitoring.cluster_uuid:
  218.  
  219. # Uncomment to send the metrics to Elasticsearch. Most settings from the
  220. # Elasticsearch output are accepted here as well.
  221. # Note that the settings should point to your Elasticsearch *monitoring* cluster.
  222. # Any setting that is not set is automatically inherited from the Elasticsearch
  223. # output configuration, so if you have the Elasticsearch output configured such
  224. # that it is pointing to your Elasticsearch monitoring cluster, you can simply
  225. # uncomment the following line.
  226. #monitoring.elasticsearch:
  227.  
  228. # ============================== Instrumentation ===============================
  229.  
  230. # Instrumentation support for the filebeat.
  231. #instrumentation:
  232. # Set to true to enable instrumentation of filebeat.
  233. #enabled: false
  234.  
  235. # Environment in which filebeat is running on (eg: staging, production, etc.)
  236. #environment: ""
  237.  
  238. # APM Server hosts to report instrumentation results to.
  239. #hosts:
  240. # - http://localhost:8200
  241.  
  242. # API Key for the APM Server(s).
  243. # If api_key is set then secret_token will be ignored.
  244. #api_key:
  245.  
  246. # Secret token for the APM Server(s).
  247. #secret_token:
  248.  
  249.  
  250. # ================================= Migration ==================================
  251.  
  252. # This allows to enable 6.7 migration aliases
  253. #migration.6_to_7.enabled: true
  254.  
  255.  
Add Comment
Please, Sign In to add comment