Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

For example, I want to set rules for all files under /home/example_user/public/ and all logs are actually located in different sub-directories like this: /home/example_user/public/siteA/access.log, /home/example_user/public/siteB/seperate/error.log, etc. What should I do? Would this do the trick:

/home/example_user/public/*/*.log {
weekly
missingok
rotate 10
blahblahblah...
}

Thanks

share|improve this question
add comment

1 Answer

Yes the logrotate configuration which you have provided will work.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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