WZZZ wrote:
Sure, I know about that, but system log was moved out of the periodic scripts to newsyslog beginning with 10.6. Now you make me wonder if what you say about sys log in Mav is correct. Are you sure you aren't referring to the periodic scripts (daily, weekly, monthly)?
Sorry for the confusion, which in part echos my own. My comments about daemons taking over the role of cron jobs was intended as a general comment, not specific to either the system logs or to the periodic jobs.
However, regarding newsyslog, note that its man page has not been updated since 2005 & it refers to its being scheduled to run periodically by cron. (Also note that the F option is meant to force trimming logs even when the "trim conditions" have not been met & is intended for troubleshooting.)
So to begin with, I'm not sure how to reconcile what the man page says about running it as a cron job with the newer daemon scheduling approach. The man page says it "may" be scheduled to run every hour (by cron) but I don't know if it normally is or not, or if cron still is what does that, directly or indirectly.
Beyond that, running newsyslog does not necessarily cause any logs to be rolled over. For that to happen, one of three conditions must be met when it is called. From the man page, they are:
1. It is larger than the configured size (in kilobytes).
2. A configured number of hours have elapsed since the log was last archived.
3. This is the specific configured hour for rotation of the log.
The configuration is normally set log by log with named entries in the /etc/newsyslog.conf file (as described in that file's man page here) & with additional, similarly formatted files in the /etc/newsyslog.d/ directory. There is also a provision for a named entry with the literal string name "<default>" for logs that have no explicit entry of their own.
The thing is, on my system running Mavericks the /etc/newsyslog.conf file contains only six entries (& no "<default>" one), none of which refer to the main /var/log/system.log. (Specifically, they are configurations for the ftp, hwmond, ipfw, lpr, ppp, & wtmp logs.) Only the entry for /var/log/wtmp is configured to roll over based on time (condition #3 above), & that is configured for the 5 AM hour.
Likewise, there are only a few entries in my /etc/newsyslog.d/ directory. Only two of those refer to var/log files (for the xscertd & wifi logs) & neither of those are set to roll over based on time (neither #2 nor #3 above).
So I'm not sure if manually running newsyslog in Mavericks will do much besides (maybe) rolling over the few logs mentioned above, or what mechanism or configuration files normally control rolling over any of the other ones. 😕