Filebeat export config

From wikieduonline
Jump to navigation Jump to search
filebeat export config


filebeat:
  config:
    modules:
      path: /opt/homebrew/etc/filebeat/modules.d/*.yml
      reload:
        enabled: false
  inputs:
  - enabled: false
    id: my-filestream-id
    paths:
    - /var/log/*.log
    type: filestream
output:
  elasticsearch:
     hosts:
    - localhost:9200
path:
  config: /opt/homebrew/etc/filebeat
  data: /opt/homebrew/var/lib/filebeat
  home: /opt/homebrew/Cellar/filebeat/8.2.2
  logs: /opt/homebrew/var/log/filebeat
processors:
- add_host_metadata:
    when:
      not:
        contains:
          tags: forwarded
- add_cloud_metadata: null
- add_docker_metadata: null
- add_kubernetes_metadata: null
setup:
  kibana: null
  template:
    settings:
      index:
        number_of_shards: 1

See also[edit]

Advertising: