Extending log rotation by adding NTP to logrotate

In a previous recipe you were shown how to configure logrotate. Logrotate is typically associated with system logfiles, but given that we have already shown you how to create a custom logfile for NTP, it is the purpose of this recipe to build on that knowledge and to show you how you can use logrotate for any custom application.

Getting ready

To complete this recipe, you will require a minimal installation of the CentOS 6 operating system with root privileges and a console-based text editor of your choice. It is assumed that you have followed a previous recipe that detailed the necessary steps to configure customized NTP logging.

How to do it...

In this recipe you are required to log in as root and ...

Get CentOS 6 Linux Server Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.