How Do You Rotate a Log in Linux?
Contents How Do You Rotate a Log File in Linux? the Next Line, Postrotate, Specifies the Following Commands Are to Be Run on /Var/Log/Messages After the File...
Contents
How do you rotate a log file in Linux?
The next line, postrotate, specifies the following commands are to be run on /var/log/messages after the file has been rotated by logrotate.
…
Manage Linux log files with Logrotate.
| daily | This is used to rotate log files daily. |
| weekly | This is used to rotate log files weekly. |
| monthly | This is used to rotate log files monthly. |
Must Read
What is log file rotation in Linux?
Log rotation, a normal thing on Linux systems, keeps any particular log file from becoming too large, yet ensures that sufficient details on system activities are still available for proper system monitoring and troubleshooting. … Manual rotation of log files is possible through the use of the logrotate command.