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 create a new file that will maintain all the necessary instructions for logrotate. Remember, this is a custom solution based on a popular package, and with this in mind there is always plenty of room for you to develop it and adapt it to your own needs...