filebeat.yml

From wikieduonline
Jump to navigation Jump to search
This article is a Draft. Help us to complete it.

Examples[edit]

cat /usr/local/etc/filebeat/filebeat.yml | grep -v "#" | grep .
filebeat.prospectors:
- type: log
  enabled: false
  paths:
    - /var/log/*.log
filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.settings:
  index.number_of_shards: 3
setup.kibana:
output.elasticsearch:
  hosts: ["localhost:9200"]
cat /opt/homebrew/opt/filebeat/.bottle/etc/filebeat/filebeat.yml | grep -v "#" | grep .
filebeat.inputs:
- type: filestream
  id: my-filestream-id
  enabled: false
  paths:
    - /var/log/*.log
filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.settings:
  index.number_of_shards: 1
setup.kibana:
output.elasticsearch:
  hosts: ["localhost:9200"]
processors:
  - add_host_metadata:
      when.not.contains.tags: forwarded
  - add_cloud_metadata: ~
  - add_docker_metadata: ~
  - add_kubernetes_metadata: ~

Related[edit]

See also[edit]

  • https://www.elastic.co/guide/en/beats/filebeat/current/configuring-howto-filebeat.html
  • Advertising: