On 11/19/2016 04:21 PM, Harry Putnam wrote:
> Mick <michaelkintz...@gmail.com> writes:
> 
>> On Saturday 19 Nov 2016 08:54:53 Harry Putnam wrote:
>>> After looking thru the portage man pages, the make.conf.example in
>>> /usr/share/portage/config, and the `Portage log wiki' it still is not
>>> clear to me how long elogs are kept if you use the `save' flag in
>>> make.conf or not.
>>>
>>> I did see something about '7 days' but it was not clear if that is the
>>> default and `save' over-rides it or what.  Or if there is another flag
>>> that controls there duration...
>>>
>>> Can anyone throw light on that?
>>
>> If you have logrotate then its configuration and associated cron jobs will 
>> take 
>> care of that.
> 
> What I want to know is if the elog program will do something on its
> own... I'm wanting to hang on to the logs a good while... I saw
> something in my readings about the elog system about 7 days... was not
> clear if that is a defalult or what.
> 
> So my fear was losing them even if I am logrotate at them in some
> capacity. So I'm asking about inside the elog program... what happens
> to the logs and when.
> 
> 
According to make.conf.example, PORTAGE_ELOG_SYSTEM="save" creates one
log per package under $PORT_LOGDIR/elog (/var/log/portage/elog if unset).

What this means is Portage will continue to use whatever path you have
specified, and it's up to your syslogd or logrotate to determine whether
those particular logs get deleted.

I suggest looking through /etc/logrotate{.conf,.d/} and grokking things
to determine how long your elogs will last. On my system, I noticed I
have /etc/logrotate.d/elog-save-summary, so if you find a file like
that, it's a good place to start. Without logrotate handling it, I see
no reason to believe Portage will nix elog output after 7 days.

In case I've missed something, could you link to the page that mentions
7 days? I searched through manpages and the wiki but haven't found any
other "save" option or anything to do with elog and 7 days.

-- 
Daniel Campbell - Gentoo Developer
OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net
fpr: AE03 9064 AE00 053C 270C  1DE4 6F7A 9091 1EA0 55D6

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to