Log Rotation
Tim Penhey
tim.penhey at canonical.com
Thu Jul 17 21:46:09 UTC 2014
We don't give loggo a file at all, it is written to stdout (or stderr).
This is then handled by our upstart scripts and redirected into a file.
I *think* there are upstart hooks for log rotation as well, but I may
well be wrong on that.
Tim
On 18/07/14 08:27, Nate Finch wrote:
> So, as below, there is a request (again) to do log rotation. For
> all-machines.log, this is pretty easy, it's just an rsyslog setting.
> For each machine's machine-<tag>.log, I suggest we use my log rotation
> package - https://godoc.org/gopkg.in/natefinch/lumberjack.v2. The nice
> thing about it is that it's easy to drop it into the current code.
> Instead of giving loggo a file to write to, you give it a
> lumberjack.Logger. Plus, it's cross-platform, so when we start
> deploying to Windows, we won't have to rework the log rotation (like we
> would if we used something like logrotate).
>
> Thoughts welcome.
>
> -Nate
>
> On Thu, Jul 17, 2014 at 3:27 PM, Alexis Bruemmer
> <alexis.bruemmer at canonical.com <mailto:alexis.bruemmer at canonical.com>>
> wrote:
>
> <ivoks> there is one bug, though
> <ivoks> you need to investigate
> <alexisb> which is?
> <alexisb> or are you asking me?
> <ivoks> https://bugs.launchpad.net/ubuntu/+source/juju/+bug/1078213
> <ivoks> i was looking for it
> <ivoks> i had two customers that filled their disks with juju logs
> <alexisb> alrgith I will get eyes on it asap
> <alexisb> thanks!
> <ivoks> if you need it, i can give you a file that juju needs to
> place in specific directory, and all would be fine
> <ivoks> actually, let me write a patch for it :)
>
> Nate was looking at it today, but want to make sure you are aware it
> came through.
>
> --
> Alexis Bruemmer
> Juju Core Manager, Canonical Ltd.
> (503) 686-5018 <tel:%28503%29%20686-5018>
> alexis.bruemmer at canonical.com <mailto:alexis.bruemmer at canonical.com>
>
>
>
>
More information about the Juju-dev
mailing list