Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Thanks, this is very helpful. In fact I have just managed to run sudo logrotate <config file> at the CLI... and my qqq.log file became qqq.log.1 (and a new qqq.log was created). Hurrah. So a cron job is indeed needed for this use case: you'd be surprised how few "logrotate how to guides" out there actually make that clear! Commented Jan 17, 2020 at 13:41
  • Pleased to hear that. You don't need the sudo with my example Commented Jan 17, 2020 at 14:08
  • 1
    I've tried this and am a little puzzled: changing the date back one day in the .conf file did the trick... but without this the size (I also tried maxSize) directive on its own had no effect (naturally I ran it several times). ... AHA... if I omit any time frequency (daily, etc.) it does do a rollover... Commented Jan 18, 2020 at 11:59