这是我的filebeat.yml文件:
filebeat.config: modules: path: ${path.config}/modules.d/*.yml reload.enabled: false processors: - add_cloud_metadata: ~ - add_docker_metadata: ~ - add_kubernetes_metadata: ~ output.elasticsearch: hosts: '${ELASTICSEARCH_HOSTS:elasticsearch:9200}' username: '${ELASTICSEARCH_USERNAME:}' password: '${ELASTICSEARCH_PASSWORD:}' setup.kibana: host: '${KIBANA_HOST}' ssl.enabled: false filebeat.modules: - module: kibana - module: elasticsearch fields_under_root: true json.keys_under_root: true filebeat.inputs: - type: log enabled: true fields: my_type: 'inventory' index: 'test-%{[fields.my_type]}-%{+yyyy.MM.dd}' paths: - /var/log/kibana/kibana.log