Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Yes the logrotate configuration which you have provided will work.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .