Linux Log cleanup
Due to data requirements, data needs to be captured and filtered frequently. It took about seven or eight months to modify the data on the machine and restart the machine. The system found that "No space left on device"
Solution:
Directly delete logs (simple and crude ):
Delete all logs: find/var-type f-exec rm-v {}\; (the last Semicolon is also part of the required command)
In addition, common log files are as follows:
Access-log records HTTP/web transmission
Acct/pacct record user commands
Aculog records MODEM activities
Btmp record failure record
Lastlog records the last successful logon events and the last unsuccessful logon events.
Messages records information from syslog (some links to the syslog file)
Sudolog records commands issued by using sudo
Sulog logs the use of the su command
Syslog records information from syslog (usually linked to the messages file)
Utmp records each user currently logged on
Wtmp a permanent record of the entry and exit times of a user upon each login
Xferlog records FTP sessions
This article permanently updates the link address: