How to create a logrotate job, that archives the logs once a month into a tar.gz and keep the logs for 12 months ?
Issue
- How to create a logrotate job, that archives the logs once a month into a tar.gz and keep the logs for 12 months ?
- The log directory is /opt/lampp/logs and log files to be rotate in this directory are: access_log, error_log, ssl_request_log.
Environment
- Red Hat Enterprise Linux 4,5,6
- logrotate
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
