How to Install and Use logrotate to Manage Log Files in Ubuntu 18.04 LTS

Log files are important for Linux system security. The logrotate tool is specially designed to simplify the administration of log files on a Linux system that allows automatic rotation, compression, removal, and mailing of log files. In this tutorial, I will explain how to use logrotate to manage logs on Ubuntu 18.04 server.