0

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

0

Yes the logrotate configuration which you have provided will work.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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