[mythtv-users] Rotating log files (was Re: --logfile vs. --logpath)

Michael T. Dean mtdean at thirdcontact.com
Fri May 18 17:36:01 UTC 2012


On 05/18/2012 01:10 PM, Craig Treleaven wrote:
> At 12:24 PM -0400 5/18/12, Michael T. Dean wrote:
>> On 05/18/2012 07:59 AM, Craig Treleaven wrote:
>>> I think I'm going to add that to my daily db backup and 
>>> optimization. For me, I think 7 days of previewgens and commflags 
>>> would be *lots*. Maybe 14 days of mfd.
>>
>> You're not running logrotate for other things, already? If not, you 
>> may want to consider it. (It or Rot[t]log, which I run, but I haven't 
>> posted any config files for it, yet, since I seem to be only one of 3 
>> people actually using it.) MythTV can't be the only thing on your 
>> system writing out log messages...
>
> Thanks, Mike.  I'm running on OS X and it uses newsyslog :
> https://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/man8/newsyslog.8.html 
>
>
> Apparently*, I can put a configuration file in in /etc/newsyslog.d/ to 
> control Myth's log rotation.  It doesn't allow for the find ... 
> -delete command, though.  But it wouldn't be a big deal to add that to 
> the daily myth script.

Ah, OK.  I was just assuming GNU/Linux and was surprised that some 
distro wasn't using some log rotator.  Hadn't even heard of newsyslog 
(and had I, I would have assumed it was another 
syslog/syslog-ng/rsyslog/... implementation versus a log rotator :).

> * I never got around to doing this with Myth .20 through .24!  A 
> couple times a year, I'd move the backend log around by hand.  Good 
> thing disk space is cheap!!

Definitely true.  And, if you're using sane logging/verbose levels (such 
as the defaults), you won't get that much log output from MythTV (at 
least not compared to disk sizes)--unless you have really bad video (bad 
reception or whatever) and ffmpeg complains about every bit of it...

Mike


More information about the mythtv-users mailing list