Logrotate can work on individual files or wildcarded files (*.log, for example) in a specified directory, but does it inherently have the ability to traverse a directory tree of arbitrary depth and process files it finds?

thanx

link|improve this question

38% accept rate
feedback

1 Answer

up vote 1 down vote accepted

No, it doesn't. You can wildcard the directories though so if your tree has a small-ish known depth you could do something like:

   /a/* /a/*/* /a/*/*/*  {
       rotate 5
       weekly
   }

If you only have logs at the leaf only /a/*/*/* is needed.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.