filebeat.inputs:
logging.level: info
logging.to_files: true
logging.files:
path: /var/log/filebeat
name: filebeat
keepfiles: 7
permissions: 0644
output.elasticsearch:
hosts: [“http://192.168.167.234:9200”,“http://192.168.167.175:9200”,“http://192.168.167.204:9200”]
index: “system-%{+YYYY.MM.dd}”
setup.ilm.enabled: false
setup.template.name: system
setup.template.pattern: system-*
这样改还是不行 日志输入到的还是/var/log/messages