Create a Bash script to automate log file rotation
Write a Bash script that rotates log files in [LOG_DIRECTORY] daily, compresses old logs, and deletes logs older than [RETENTION_DAYS]. Replace [LOG_DIRECTORY] and [RETENTION_DAYS] with your specific values.
For managing server logs and preventing disk space issues.