31 lines
398 B
Plaintext
31 lines
398 B
Plaintext
|
|
out-crawler-host
|
|
|
|
|
|
yum -y localinstall filebeat-8.17.0-x86_64.rpm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
systemctl enable filebeat.service
|
|
|
|
journalctl -u filebeat -f
|
|
|