1, problem description
Today I need to check the Ubuntu system log file, but I did not find/var/log/messages this file. Online search of the material, said to be configured/etc/syslog.conf. Syslog uses a configurable, unified system registration program that accepts log requests from all parts of the system at any time, and then writes the log information to the appropriate file, by mail to a specific user, or directly to the console, according to the pre-set in the/etc/syslog.conf.
OK, here comes the question again. The system is still not/etc/syslog.conf, after some search, the final conclusion is: In Ubuntu should be the corresponding/etc/rsyslog.conf and RSYSLOGD.
2. Problem solving
Open/etc/rsyslog.d/50-default.conf Delete the following comments
Run the following command to restart the Rsyslog service
sudo service rsyslog restart
Reference:
Http://www.linuxidc.com/Linux/2015-04/116532.htm (the above part of the content is transferred from this article)
Http://www.linuxidc.com/Linux/2015-04/116532.htm (the above part of the content is transferred from this article)
Ubuntu 16.04 does not have the/var/log/messages file problem solved