what are rotated logs
I have been using linux for the lat 2 years.
But I came across "Rotated logs" term for the first time. What are they and what is their purpose? |
Quote:
An explanation in my own words wouldn't be better than you'll find here but essentially instead of putting all your logging info into one big old log file you can have some ordered set of log files {file_1, ..., file_n} where the newest logs are sent to file_n (and file_{n+1} is created (probably automatically) at some point in the future) and the oldest logs are in file_1 (which will be deleted when file_{n+1} is created) Helps make the logs you want easier to find and get rid of stuff you don't care about without messing with the file containing logs you want to keep |
Actually, the lowest numbered log is the most recent; numbers go up as logs are aged+rotated.
In fact, the current log being written to is the un-numbered one eg Code:
ls -lt /var/log/mess* |
Quote:
|
All times are GMT -5. The time now is 02:14 AM. |