2025-10-13 11:05:51 +08:00
|
|
|
|
|
|
|
|
out-crawler-host
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-10-15 18:00:33 +08:00
|
|
|
yum -y localinstall filebeat-8.17.0-x86_64.rpm
|
2025-10-13 11:05:51 +08:00
|
|
|
|
|
|
|
|
cd /etc/filebeat
|
|
|
|
|
mv filebeat.yml filebeat.yml.bak
|
|
|
|
|
mkdir inputs.d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vim filebeat.yml
|
|
|
|
|
|
|
|
|
|
vim inputs.d/yt_search_crawler.yml
|
|
|
|
|
|
|
|
|
|
filebeat test config
|
|
|
|
|
filebeat test output
|
|
|
|
|
|
|
|
|
|
systemctl stop filebeat.service
|
|
|
|
|
systemctl start filebeat.service
|
|
|
|
|
systemctl status filebeat.service
|
|
|
|
|
|
|
|
|
|
journalctl -u filebeat -f
|
|
|
|
|
|