我的Filebeat安装遇到了问题/问题。
当我尝试以" service filebeat start
"开头时,它会说"启动Filebeat"。在" service filebeat status
"之后我得到4个PID (直到这里所有东西看起来都是#34;正常"):
[root@(Server) run]# service filebeat status
Filebeat is running with pid: 30650 30657 30658 30659
但在检查PID之后,我们发现它没有运行:
[root@(Server) run]# ps -ef | grep 30650
root 30665 31360 0 16:27 pts/0 00:00:00 grep --color=auto 30650
尝试使用systemctl启动它并没有帮助:
[root@(Server) run]# systemctl start filebeat
Job for filebeat.service failed because a configured resource limit was exceeded. See "systemctl status filebeat.service" and "journalctl -xe" for details.
状态说:
[root@Server run]# systemctl status filebeat
● filebeat.service - LSB: start and stop filebeat
Loaded: loaded (/etc/rc.d/init.d/filebeat; bad; vendor preset: disabled)
Active: failed (Result: resources) since Tue 2017-09-26 16:30:33 CEST; 1min 41s ago
Docs: man:systemd-sysv-generator(8)
Process: 32118 ExecStart=/etc/rc.d/init.d/filebeat start (code=exited, status=0/SUCCESS)
Sep 26 16:30:33 Server... systemd[1]: Starting LSB: start and stop filebeat...
Sep 26 16:30:33 Server... filebeat[32118]: Starting Filebeat
Sep 26 16:30:33 Server... su[32119]: (to user) root on none
Sep 26 16:30:33 Server... systemd[1]: PID file /var/run/filebeat.pid not readable (yet?) after start.
Sep 26 16:30:33 Server... systemd[1]: Failed to start LSB: start and stop filebeat.
Sep 26 16:30:33 Server... systemd[1]: Unit filebeat.service entered failed state.
Sep 26 16:30:33 Server... systemd[1]: filebeat.service failed.
有人有任何想法吗?
此致
答案 0 :(得分:0)
问题是" chown权限"。我安装了filebeat而不是root和"数据"目录有root用户&集体所有权。更改后,它会在启动后自动运行并启动。
此致