Ubuntu 16.04 does not have the/var/log/messages file problem solved

Source: Internet
Author: User
Tags syslog system log rsyslog

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.