在 CentOS 上重启 Filebeat 服务,取决于你使用的 系统初始化方式(systemd 还是 init.d),以及 CentOS 版本。
systemctl restart filebeat
systemctl status filebeat
systemctl enable filebeat
systemctl stop filebeat
systemctl start filebeat
service filebeat restart
或
/etc/init.d/filebeat restart
ps -ef | grep filebeat
或查看日志:
journalctl -u filebeat -f
可能是配置文件错误:
filebeat test config
/var/log/filebeat/如果你是 Docker 方式运行的 Filebeat,或者不知道是哪种安装方式,可以告诉我,我帮你具体看。