版本選擇
filebeat-5.6.15-x86_64.rpm
Filebeat安裝
Filebeat安裝在日志源服務(wù)器上信卡。
-
ElasticStack歷史版本下載鏈接
根據(jù)實際系統(tǒng)環(huán)境選擇合適的包溅潜。
2.將包上傳至服務(wù)器臨時目錄。
3.安裝Filebeat
rpm -ivh filebeat-5.6.15-x86_64.rpm
4.配置filebeat.yml
filebeat.yml詳情域醇,如下:
filebeat.prospectors:
- input_type: log
paths:
- /usr/mylog/*.log
output.logstash:
# The Logstash hosts
hosts: "10.10.61.205:5044"
- 運行Filebeat
- Filebeat前臺啟動
./filebeat -e -c /etc/filebeat/filebeat.yml
- Filebeat前臺停止
按組合鍵ctrl+c即可停止Filebeat運行。 - Filebeat后臺啟動
nohup ./filebeat -e -c /etc/filebeat/filebeat.yml &
- Filebeat進程查詢
ps -ef|grep filebeat
- Filebeat后臺停止
kill -9 32547
32547為上步查詢出的pid蓉媳。
- Filebeat前臺啟動