How to add a file to logrotate on Linux
If you have a log file that gets written to frequently, you will want to add it to logrotate so it doesn't consume all of your disk space. Logrotate will rotate the log according to your specifications and delete old logs.
Howchoo is reader-supported. As an Amazon Associate, we may earn a small affiliate commission at no cost to you when you buy through our links.