Advertisement
Guest User

Untitled

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