在Debian系統上確保Filebeat安全運行需要采取一系列措施,包括配置文件的安全性、使用安全的認證方式、限制網絡訪問、定期更新和監控等。以下是一些關鍵步驟和建議:
cd /home/filebeat
wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.10.1-linux-x86_64.tar.gz
tar -xvf filebeat-7.10.1-linux-x86_64.tar.gz
/home/filebeat/filebeat-7.10.1-linux-x86_64/filebeat.yml
):output.elasticsearch:
hosts: ["elasticsearch-secure:9200"]
username: "elastic"
password: "your_secure_password"
ssl.enabled: true
ssl.certificate: "/path/to/your/certificate.pem"
ssl.key: "/path/to/your/key.pem"
cat /etc/systemd/system/filebeat.service
# ...
systemctl enable filebeat
systemctl start filebeat