在CentOS环境下,Filebeat的安全设置主要包括以下几个方面:
关闭SELinux:
setenforce 0
/etc/selinux/config
文件,将 SELINUX=enforcing
改为 SELINUX=disabled
,然后重启系统使配置生效。关闭防火墙:
firewall-cmd status
systemctl stop firewalld.service
systemctl disable firewalld.service
用户及用户组要求:
groupadd -r elasticsearch
useradd -r -g elasticsearch -s /sbin/nologin -c "elasticsearch user" -m elasticsearch
系统目录要求:
通过这些设置,可以提升Filebeat在CentOS环境下的安全性。