Linux log cleanup

Source: Internet
Author: User

Because of the data requirements. It is often necessary to capture and filter the data, which takes about 7 8 months. Changed the data next to the machine. Start again and find "No space left on device"

Workaround:

Delete log directly (simple Brute):
Delete all logs: Find/var-type f-exec rm-v {} \; (The final semicolon is also part of the required command)


Another: Frequently used log files such as the following:
Transmission of Access-log record Http/web
acct/pacct Record user commands
activities of the Aculog record modem
btmp Record of failed records
Lastlog Records Recent successful login events and the last unsuccessful login
messages Logging information from syslog (some links to syslog files)
sudolog record commands with sudo
use of the Sulog record using the SU command
syslog logs information from a syslog (usually linked to a messages file)
utmp Record every user currently logged in
wtmp A user's permanent record of each login entry and exit time
Xferlog record FTP conversation

Linux log cleanup

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.