I am logging all our applications logs to /logs/, where all our applications have an seperate directory. I have made a custom logrotate file as follows:
/logs/*.log {
daily
missingok
rotate 1
sharedscripts
dateext
}
So this is catching all logfiles within /logs. But i want to leave some directories out of the rotation. Can I somehow exclude these directories? And what would be the best practice in this situation?