logrotate is not rotating files in custom location

Solution Verified - Updated -

Issue

  • We're using a custom location for log files of one of our services and despite adding a drop file to /etc/logrotate.d, the logrotate cron job is not rotating our logs.

  • logrotate isn't rotating once added the below configuration in /etc/logrotate.d/ .. why?

    /var/log/rsyslog/*/*/*.log 
    {
    ...
    }
    

Environment

  • Red Hat Enterprise Linux
  • logrotate

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.