当我更改/etc/kibana/kibana.yml的第92行时
# Enables you specify a file where Kibana stores log output.
# logging.dest: stdout
logging.dest: /var/log/kibana/kibana.log # line 92那么基巴纳就不能正常启动。当/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 kibanaKibana是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/kibanajournalctl
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)配置文件.中不允许任何空间
发布于 2017-08-16 15:47:27
出于某种原因,kibana不知道自己创建日志文件。因此,您必须首先手动创建它,并设置正确的所有权。这是可以做到的:
touch /var/log/kibana.log
chown kibana:kibana /var/log/kibana.log然后发出一个系统and重新启动kibana,您应该就可以了!
可以通过以下方式查看日志:tailf /var/log/kibana.log或
cat /var/log/kibana.loghttps://stackoverflow.com/questions/45717836
复制相似问题