Assignment: Log Files
Log Files
The server we are using, which runs
Ubuntu PCLinuxOS, uses the logrotate
program (section 10.3 in the book). Using information from the
/etc/logrotate.conf file and files in the
/etc/logrotate.d directory, answer these questions. Copy
the question and your answer into a plain ASCII text file, using
the editor of your choice).
- How often are the apache log files rotated?
- How many periodic files does apache keep? (The name of the
Apache daemon is
httpd)
- Apache uses the delaycompress option. Why does it
need to do this? (See the man page and put it in your
own words.)
- Are MySQL server log files compressed or not?
Will empty log files for aptitude (the Ubuntu package
manager) be rotated?
syslogd
Give the commands you would need in /etc/syslog.conf
in order to do the following:
- Only critical messages from user processes should go to file
/var/log/userproblem.log
- Send debugging messages from news to
/var/log/newsbug.log
- Send emergency messages from all facilities to
/var/log/panic.log
- Send messages at info level and above from lpr
to /var/log/lprinfo.log
- All messages from ftp, except for notices, should go to
/var/log/ftp.log
When You Finish
Name your text file in the form
lastname_firstname_log.txt
and email it to the instructor.