Linux Daily Management-linux log

Source: Internet
Author: User

Through the system log to obtain relevant information, error, unexpected situation can be viewed through the log to obtain useful information. Encounter a fault, look at the log is the most common method, in the daily work must develop the habit of looking at the log.

The most core logs are in this directory.

The log will be generated indefinitely, the memory will be more and more large, there is a configuration file can limit the number of logs, time, and other information.

Configuration file:

Weekly logs are cut once a week

Rotate 4 reserved only 4

Create to create a new

Dateext Date Form naming

#compress log is not compressed

INCLUDE/ETC/LOGROTATE.D There are many configuration files in this directory

About the configuration of/var/log/wtmp

Monthly Monthly Filing

Create 0664 root utmp permissions 664 owner Root Group is utmp

Minsiz 1M minimum 1M less than 1M non-cutting

Rotate 1 reserved only 1

About the same/var/log/btmp.

//////////////////////////////////////////////////////////////////////////////////////////////

View kernel-related logs

See which users have logged in to this terminal at what time

To view invalid login records

About mail-related and validation-related

Hardware-related logs during system startup

Linux Daily Management-linux log

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.