%20%E3%81%AB%E3%83%AB%E3%83%BC%E3%83%AB%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95.png)
たとえば、 の下にあるすべてのファイルにルールを設定したいのです/home/example_user/public/
が、すべてのログは実際には次のように異なるサブディレクトリにあります: /home/example_user/public/siteA/access.log
、/home/example_user/public/siteB/seperate/error.log
など。どうすればよいでしょうか? 次のようにすればうまくいきますか:
/home/example_user/public/*/*.log {
weekly
missingok
rotate 10
blahblahblah...
}
ありがとう
答え1
はい、提供された logrotate 構成は機能します。