| User Functions |
|
Don't have an account yet? Sign up as a New User
|
|
| Events |
|
There are no upcoming events |
|
|
 |
 |
 |
 |
| Rotating Linux Log Files |
|
Thursday, June 08 2006 @ 02:19 PM EDT Contributed by: sde
|
This little how-to will show you how the default log rotation works, based on syslog and logrotate. There are other ways to achieve this, like using syslog-ng instead of syslog that I will cover in a future article.
Understanding how the default setup works, will help you have an idea of what will happen and what logs will be rotated, when will this occur, and how long will they be kept. Also it will show you the places where you can make changes in case you need to do that (if you want to save some log for a longer time, or if you want to rotate it differently from the default). The examples I will present are taken from a Debian system, so if you are running a different system, they might differ a little, but not drastically (like you might have the cron setup to run at a different time, or keep a different number of log iterations by default). Full article
|
|
| |
| [ Views: 1486 ] |
|
|
 |
 |
 |
 |
|
|
We have written a
range of guides highlighting excellent free
books for popular programming languages. Check out the
following guides: C,
C++,
C#,
Java,
JavaScript,
CoffeeScript,
HTML,
Python,
Ruby,
Perl,
Haskell,
PHP,
Lisp,
R,
Prolog,
Scala,
Scheme, and SQL.
|
|
|
|