* [gentoo-user] elog default lifespan
@ 2016-11-19 13:54 Harry Putnam
2016-11-19 16:59 ` Mick
0 siblings, 1 reply; 7+ messages in thread
From: Harry Putnam @ 2016-11-19 13:54 UTC (permalink / raw
To: gentoo-user
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?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] elog default lifespan
2016-11-19 13:54 [gentoo-user] elog default lifespan Harry Putnam
@ 2016-11-19 16:59 ` Mick
2016-11-20 0:21 ` [gentoo-user] " Harry Putnam
0 siblings, 1 reply; 7+ messages in thread
From: Mick @ 2016-11-19 16:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 633 bytes --]
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.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user] Re: elog default lifespan
2016-11-19 16:59 ` Mick
@ 2016-11-20 0:21 ` Harry Putnam
2016-11-20 5:17 ` Alan McKinnon
2016-11-20 8:41 ` Daniel Campbell
0 siblings, 2 replies; 7+ messages in thread
From: Harry Putnam @ 2016-11-20 0:21 UTC (permalink / raw
To: gentoo-user
Mick <michaelkintzios@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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Re: elog default lifespan
2016-11-20 0:21 ` [gentoo-user] " Harry Putnam
@ 2016-11-20 5:17 ` Alan McKinnon
2016-11-20 8:41 ` Daniel Campbell
1 sibling, 0 replies; 7+ messages in thread
From: Alan McKinnon @ 2016-11-20 5:17 UTC (permalink / raw
To: gentoo-user
On 20/11/2016 02:21, Harry Putnam wrote:
> Mick <michaelkintzios@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.
>
>
elog only appends to the log files. If you want rotation etc, use logrotate
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Re: elog default lifespan
2016-11-20 0:21 ` [gentoo-user] " Harry Putnam
2016-11-20 5:17 ` Alan McKinnon
@ 2016-11-20 8:41 ` Daniel Campbell
2016-11-20 23:07 ` Ian Zimmerman
2016-11-26 15:38 ` Harry Putnam
1 sibling, 2 replies; 7+ messages in thread
From: Daniel Campbell @ 2016-11-20 8:41 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1.1: Type: text/plain, Size: 2210 bytes --]
On 11/19/2016 04:21 PM, Harry Putnam wrote:
> Mick <michaelkintzios@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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user] Re: elog default lifespan
2016-11-20 8:41 ` Daniel Campbell
@ 2016-11-20 23:07 ` Ian Zimmerman
2016-11-26 15:38 ` Harry Putnam
1 sibling, 0 replies; 7+ messages in thread
From: Ian Zimmerman @ 2016-11-20 23:07 UTC (permalink / raw
To: gentoo-user
On 2016-11-20 00:41, Daniel Campbell wrote:
> 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.
Well, on my systems they _do_ seem to vanish after a week, but I don't
know how/why. Nothing in crontabs or logrotate. Maybe emerge cleans
them up itself? That would be kind of dirty, though.
--
Please *no* private Cc: on mailing lists and newsgroups
Personal signed mail: please _encrypt_ and sign
Don't clear-text sign: http://cr.yp.to/smtp/8bitmime.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user] Re: elog default lifespan
2016-11-20 8:41 ` Daniel Campbell
2016-11-20 23:07 ` Ian Zimmerman
@ 2016-11-26 15:38 ` Harry Putnam
1 sibling, 0 replies; 7+ messages in thread
From: Harry Putnam @ 2016-11-26 15:38 UTC (permalink / raw
To: gentoo-user
Daniel Campbell <zlg@gentoo.org> writes:
> On 11/19/2016 04:21 PM, Harry Putnam wrote:
>> Mick <michaelkintzios@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.
https://wiki.gentoo.org/wiki/Portage_log
[About mid page ... But this may not be considered `elogs'... ]
Next, a number of FEATURES settings influence how Portage handles build logs.
With binpkg-logs set, even binary package deployments will have their
logs saved
When clean-logs is set, regular log file clean operations are
executed. The command that is executed is defined by PORT_LOGDIR_CLEAN
and defaults to a retention of the files of 7 days.
With split-log set, build logs are stored in category-named
subdirectories of ${PORT_LOGDIR}/build
When clean-logs is set, Portage will execute the command defined by
PORT_LOGDIR_CLEAN after every build or unmerge operation. By
default, the following command is used:
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-11-26 15:38 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-19 13:54 [gentoo-user] elog default lifespan Harry Putnam
2016-11-19 16:59 ` Mick
2016-11-20 0:21 ` [gentoo-user] " Harry Putnam
2016-11-20 5:17 ` Alan McKinnon
2016-11-20 8:41 ` Daniel Campbell
2016-11-20 23:07 ` Ian Zimmerman
2016-11-26 15:38 ` Harry Putnam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox