当我更改/etc/kibana/kibana.yml
# Enables you specify a file where Kibana stores log output.
# logging.dest: stdout
logging.dest: /var/log/kibana/kibana.log # line 92
然后kibana无法正常启动。
当评论/etc/kibana/kibana.yml
的第92行正确启动时
jounarlctl
sie 16 17:32:51 test.org.pl systemd[1]: Starting Kibana...
sie 16 17:32:52 test.org.pl kibana[3083]: FATALÂ CLI ERROR YAMLException: bad indentation of a mapping entry at line 92, column 2:
sie 16 17:32:52 test.org.pl systemd[1]: kibana.service: main process exited, code=exited, status=1/FAILURE
sie 16 17:32:52 test.org.pl systemd[1]: Unit kibana.service entered failed state.
sie 16 17:32:52 test.org.pl systemd[1]: kibana.service failed.
sie 16 17:32:52 test.org.pl systemd[1]: kibana.service holdoff time over, scheduling restart.
sie 16 17:32:52 test.org.pl systemd[1]: Started Kibana.ervice
sie 16 17:32:52 test.org.pl systemd[1]: Starting Kibana...
sie 16 17:32:53 test.org.pl systemd[1]: kibana.service: main process exited, code=exited, status=1/FAILURE
sie 16 17:32:53 test.org.pl systemd[1]: Unit kibana.service entered failed state.
sie 16 17:32:53 test.org.pl systemd[1]: kibana.service failed.
sie 16 17:32:53 test.org.pl systemd[1]: kibana.service holdoff time over, scheduling restart.
sie 16 17:32:53 test.org.pl systemd[1]: Started Kibana.
sie 16 17:32:53 test.org.pl systemd[1]: Starting Kibana...
sie 16 17:32:54 test.org.pl systemd[1]: kibana.service: main process exited, code=exited, status=1/FAILURE
sie 16 17:32:54 test.org.pl systemd[1]: Unit kibana.service entered failed state.
sie 16 17:32:54 test.org.pl systemd[1]: kibana.service failed.
sie 16 17:32:54 test.org.pl systemd[1]: kibana.service holdoff time over, scheduling restart.
sie 16 17:32:54 test.org.pl systemd[1]: start request repeated too quickly for kibana.service
sie 16 17:32:54 test.org.pl systemd[1]: Failed to start Kibana.
sie 16 17:32:54 test.org.pl systemd[1]: Unit kibana.service entered failed state.
sie 16 17:32:54 test.org.pl systemd[1]: kibana.service failed.
我在/etc/
drwxr-xr-x. 2 root root 6 08-10 16:00 kibana
我以daemon
systemctl restart kibana
Kibana
是版本5.5.1
更新
我尝试手动制作此文件,但kibana
之后不会启动:
[root@localhost kibana]# ls -lh
razem 8,0K
-rw-r--r--. 1 kibana kibana 0 08-17 10:17 kibana.log
-rw-r--r--. 1 root root 78 06-19 15:26 kibana.stderr
-rw-r--r--. 1 root root 1,4K 06-19 15:26 kibana.stdout
[root@localhost kibana]# pwd
/var/log/kibana
journalctl
sie 17 10:20:05 localhost.localdomain systemd[1]: Starting Kibana...
sie 17 10:20:05 localhost.localdomain systemd[1]: Started Kibana.
sie 17 10:20:07 localhost.localdomain kibana[10222]: FATAL CLI ERROR YAMLException: bad indentation of a mapping entry at line 93, column 2:
sie 17 10:20:07 localhost.localdomain kibana[10222]: logging.dest: /var/log/kibana/ki ...
sie 17 10:20:07 localhost.localdomain kibana[10222]: ^
sie 17 10:20:07 localhost.localdomain kibana[10222]: at generateError (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:160:10)
配置文件中不允许有空格。
答案 0 :(得分:2)
由于某种原因,kibana不知道自己创建日志文件。因此,您必须先手动创建它并设置正确的所有权。这可以这样实现:
touch /var/log/kibana.log
chown kibana:kibana /var/log/kibana.log
然后发出 systemctl restart kibana ,你应该好好去!
您可以按以下方式查看日志:tailf /var/log/kibana.log
或
cat /var/log/kibana.log