以下是Filebeat在CentOS上的安全配置方法:
filebeat
),并修改服務文件/etc/systemd/system/filebeat.service
,將User
和Group
設為該用戶。/etc/filebeat/filebeat.yml
權限為600
,所有者為filebeat
用戶,可使用chown
和chmod
命令。filebeat.yml
中配置證書路徑,啟用ssl.enabled
,并指定certificate
、key
及certificate_authorities
文件。xpack.security.enabled
,并設置用戶名、密碼及信任庫路徑。firewalld
)限制Filebeat端口(如5601)的訪問,僅允許特定IP段。參考來源: