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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content