Rotated logs review
Screenshots of my rotated logs based on the logrotate and log2ram configuration on the present release (https://github.com/openenergymonitor/EmonScripts/tree/master/defaults/etc/logrotate.d):



Is this number of rotated logs based on the 100k rotation unwieldy? too many files to open and work through, if you wanted to find an error?
Both the emonhub and emoncms logrotate config drop-ins should have their own maxsize= settings.
Even 1M was always way too small for emonhub, 3-5M maybe?
and the apache logs should also be getting sent to emoncms log folder by the vhost and then being rotated at the higher maxsize into /var/log.old/emoncms. Why are they in /var/log.old?
Hmm I'm not sure why the apache logs are there, the vhost settings direct them to /var/log/emoncms and they are also there - though not gzip'ed..
quite a few files over 100k too..

File permissions where wrong on 00_defaults
The apache2 log not in the emoncms folder is created by this entry in conf-enabled:

I've changed it to /var/log/emoncms/apache2-error.log there for now and fixed the permissions on 00_defaults
I've changed the maxsize on emoncms and emonhub logs to 3M
I've changed it to /var/log/emoncms/apache2-error.log there for now
That sounds like it's the right place to set the default error log on an emonSD permanently.
fixed the permissions on 00_defaults
What is "00_defaults" ?
[edit] Ah! I've found it! I think that name (and maybe some others) are a bit vague. granted it might make slightly more sense whilst located in the logrotate.d folder, but even then it should be maybe "00-emonsd" because it is the emonSD global logrotate conf file. (looking at some other drop-in files the theme seems to be hyphens rather than underscores when prefixing a number), this file may become superfluous if the L2R drop-in defines a global along the same lines, which I suspect it will, I just haven't tackled the extended logrotate in any depth yet.