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*

11
  • In the configuration file is written correctly, I have pasted it wrong in the post, now I correct it. Thank you very much Commented Nov 26, 2017 at 15:12
  • ok. @xav So next guess: is there /var/lib/logrotate/logrotate.status file and folder for it: /var/lib/logrotate/ ? Logrotate may skip rotating logs if there is no such folder. And also there may be some notes about errors on state file. Please check it for any warnings. Commented Nov 26, 2017 at 15:15
  • Hello, the folder and file exist. There are no warnings or error messages inside. /var/lib/logrotate/logrotate.status (-rw-rw-r-- 1 admin admin) Commented Nov 26, 2017 at 15:44
  • @xav are there any records about your /mylogs files in status file? You have -s /var/lib/logrotate/status on your cron file and by hands you run without it, this also may affect the way file is rotated. You also could use -d flag for logrotate to show what it will do without actual rotating and compare -d outputs for -s /var/lib/logrotate/status and without -s runs. Commented Nov 26, 2017 at 16:07
  • Hi this is using: -d link And this without d or s :error: error creating output file /mylogs/log-20171126: permission denied Commented Nov 26, 2017 at 17:53