filebeat 2021-03-15 大数据ES nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial 123456789101112131415161718192021222324252627curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.5.1-x86_64.rpmrpm -vi filebeat-7.5.1-x86_64.rpmfilebeat modules enable logstashfilebeat setupcat<<EOF>/etc/filebeat/filebeat.ymlfilebeat.inputs:- type: log enabled: true paths: - /data/*.logfilebeat.config.modules: path: \${path.config}/modules.d/*.yml reload.enabled: falsesetup.template.settings: index.number_of_shards: 1setup.kibana:output.elasticsearch: hosts: ["localhost:9200"]processors: - add_host_metadata: ~ - add_cloud_metadata: ~ - add_docker_metadata: ~ - add_kubernetes_metadata: ~EOFmkdir /datafor i in $(seq 1 10000); do echo "{\"x\"="$i"}" >> /data/10000.log; sleep 1s;done &/usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat.yml -path.home /usr/share/filebeat -path.config /etc/filebeat -path.data /var/lib/filebeat -path.logs /var/log/filebeat -e & 最后更新时间:2021-03-15 15:18:00 这里可以写作者留言,标签和 hexo 中所有变量及辅助函数等均可调用,示例:<%- page.permalink.replace(/index\.html$/, '') %> 赏 Prev logstash Next docker-mysql