Log files

Working individually you will choose five log files.

For each of the logs you should perform the following tasks:
• Describe the log
• Create a script that may be useful in managing the log
• Illustrate why the script would be useful
• Create one regular expression that may be useful in analyzing the log
• Describe the rules that dictate the pattern of the regular expression
• Illustrate why the regular expression would be useful.
• (The regular expression should be part of the script)

When describing the log please provide 4 - 5 sample lines and discuss them briefly.

The five logs should be divided as follows:
• Three logs generated by the system (for example: daemon, kern, syslog)
• Two logs generated by installed applications (for example: mysql, apache

Sample Solution