youtubebeat/vendor/github.com/elastic/beats/filebeat/docs/autodiscover-jolokia-config.asciidoc

24 lines
722 B
Text
Raw Normal View History

2018-11-18 11:08:38 +01:00
Filebeat supports templates for inputs and modules:
["source","yaml",subs="attributes"]
-------------------------------------------------------------------------------
filebeat.autodiscover:
providers:
- type: jolokia
interfaces:
- name: lo
templates:
- condition:
contains:
jolokia.server.product: "kafka"
config:
- module: kafka
log:
enabled: true
var.paths:
- /var/log/kafka/*.log
-------------------------------------------------------------------------------
This configuration starts a jolokia module that collects logs of kafka if it is
running. Discovery probes are sent using the local interface.