Sorry I should have made that more clear it can be done when installed or afterwards. I personally don't use the log collector because we have Linux based central syslogs in my environment plugged into splunk. But you can choose how long to keep them and max size of the logs before they rotate:
If afterwards look at this article: