Book Image

Webmin Administrator's Cookbook

By : Michal Karzynski
Book Image

Webmin Administrator's Cookbook

By: Michal Karzynski

Overview of this book

Table of Contents (19 chapters)
Webmin Administrator's Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring logfile rotation


Log messages are very useful for debugging problems, analyzing usage patterns of your system, and checking if attempts were made to compromise your server. Each message is useful for a limited time, however, and old logs can be deleted to reclaim disk space.

Log rotation is a strategy that ensures that the most recent log messages are always readily available while older messages are stored in separate files, which can be compressed to save space. After a few weeks or months, depending on the log type, the oldest messages can be deleted.

Webmin allows you to control the logrotate utility that performs automatic logfile rotation for you. Most packages that you will install will come with their own logrotate configuration files, which they will place in the /etc/logrotate.d directory. Placing a configuration file in this directory ensures that files will fall under log rotation control. Webmin gives you a graphical interface to easily create and modify these files...