/var/log/kibana/kibana.stdout as well as kibana.stderr seem to have no logs being written to them (I am getting undefined errors in my Kibana)
In the kibana.yml file, I have then also set logging.dest: /var/logs/kibana.log
while inserting a kibana.log file into this directory... but again nothing is being written to the file.
The default log output destination depends on the init system your linux distribution uses:
For SysV stdout and stderr of Kibana would be written to /var/log/kibana.{stdout,stderr}. Changing logging.dest to something besides stdout will cause these files to be empty. One thing to keep in mind is that the Kibana process needs to have write access to these files or the file configured in logging.dest. The default init script should take care of that.
For systemd the output is captured by journald and can be inspected using journalctl.
I figured it must be permissions as it was -rw-r--r-- for both files.
So I performed chmod ugoa+rwx on both files, to give all users all kinds of permissions, just to see what errors are being written.... however still nothing is being written to the file
Under systemd with logging.dest on default or set to stdout you should be able to see the Kibana output using journalctl -u kibana.service (assuming the Kibana unit file is called kibana.service).
When I invoke that I get : No journal files were found. -- No entries --
kibana.service is located in ./etc/systemd/system/
I guess this is the problem? I have restarted systemd-jounald, but have had no luck.
Am I supposed to create this file manually? If so.. how and where?
I'm not very familiar with CentOS 7, but it seems that it is using journald only for transient logs and still forwards them to rsyslogd. So whether rsyslogd persists the log anywhere depends on your configuration.
To enable persistence of the journald journal a directory called /var/log/journal must be created (according to chapter 20.10.5. of the RHEL7 System Admin Guide).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.