Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Verify you have the most up - to - date version of logrotate installed. Configure the following default parameters for logrotate by editing / etc

Verify you have the most up-to-date version of logrotate installed.
Configure the following default parameters for logrotate by editing /etc/logrotate.conf:
A rotation scheme keeping four weeks of backlogs.
Create new empty log files after rotating old ones.
Do not rotate empty logs.
Compress log files.
List the contents of logrotate.d to see what configuration files are present.
In /etc/logrotate.d, add configurations for the following directories:
For the log rotation rules for /var/log/auth.log, use the following parameters: 180 days of backlog, rotate daily, Don't rotate empty logs, Compress the file, Delay the compression. Name the configuration file auth.
For the log rotation rules for /var/log/cron.log, use the following parameters: 60 days of backlog, rotate daily, Don't rotate empty logs, Compress the file, Delay the compression. Name the configuration file cron.
For the log rotation rules for /var/log/boot.log, use the following parameters: 30 days of backlog, rotate daily, Don't rotate empty logs, Compress the file, Delay the compression. Name the configuration file boot.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How is the net cost of inventory calculated?

Answered: 1 week ago

Question

3. describe how to recognize disordered eating,

Answered: 1 week ago