Linux log System

Source: Internet
Author: User
Tags rsyslog
Common logs

Common logs are typically stored in/var/log.
Common Log Viewing use: Ls/ll,cat/more/less view; Wtmp,lastlog use last and Lastlog to extract their information

Configuration Log
  • Newer Ubuntu collects logs using the Rsyslog (Rocket-fast System for log) program
  • Rsyslog configuration file has two:/etc/rsyslog.conf (for configuring the logging Environment) and/etc/rsyslog.d/50-default.conf (for configuring filter conditions)
Dump Log
    • With the system running, more and more log, occupy more and more space. This requires logrotate implementation of the deletion of old logs/creation of new logs/cutting logs, etc. for "dump"
    • Logrotate configuration file:/etc/logrotate

Linux log System

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.