Your message dated Sat, 22 Oct 2016 00:18:38 +0200
with message-id <[email protected]>
and subject line Re: systemd: users should not have to put a value greater than
desired in MaxRetentionSec to avoid loss of information
has caused the Debian Bug report #766074,
regarding systemd: users should not have to put a value greater than desired in
MaxRetentionSec to avoid loss of information
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
766074: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766074
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: systemd
Version: 215-5+b1
I modified /etc/systemd/journald.conf by adding these two lines:
MaxRetentionSec=7day
MaxFileSec=1day
Before the change, journalctl says:
-- Logs begin at vie 2014-10-10 14:33:54 CEST, [...]
After the change, journalctl says:
-- Logs begin at miƩ 2014-10-15 03:37:58 CEST, [...]
But today is 2014-10-20 19:20 CEST, so apparently there has been loss
of information here, as I can't anymore get log entries between
2014-10-13 19:20 (seven days ago, as specified in the configuration
file) and the time journalctl says the log begins.
Manual says:
MaxRetentionSec=
The maximum time to store journal entries. This controls whether
journal files containing entries older then the specified time
span are deleted.
Ok, but what happens if the specified time is in the middle of a journal file?
It seems that current behaviour is that as far as a journal file has a
*single* entry older than the specified time, the entire journal file
is discarded, including entries which are older than the time limit
but also entries which are a little bit newer than the time limit.
We could discuss whether or not this matches the documentation, but in
my opinion this behaviour is not what one would expect.
I would expect journal files to be discarded only when all of its
entries have expired, or, at the very minimum, manual should warn the
user that if he/she wants to keep a whole week of logs, then the value
of MaxRetentionSec should be greater than a week.
Thanks.
--- End Message ---
--- Begin Message ---
On Tue, 2 Feb 2016 17:27:05 +0100 Michael Biebl <[email protected]> wrote:
> Control: tags -1 + upstream
>
> Hi
>
> On Mon, 20 Oct 2014 19:33:23 +0200 (CEST) Santiago Vila
> > Manual says:
> >
> > MaxRetentionSec=
> >
> > The maximum time to store journal entries. This controls whether
> > journal files containing entries older then the specified time
> > span are deleted.
> >
> > Ok, but what happens if the specified time is in the middle of a journal
> > file?
> >
> > It seems that current behaviour is that as far as a journal file has a
> > *single* entry older than the specified time, the entire journal file
> > is discarded, including entries which are older than the time limit
> > but also entries which are a little bit newer than the time limit.
> >
> > We could discuss whether or not this matches the documentation, but in
> > my opinion this behaviour is not what one would expect.
>
> Imho the documentation is pretty clear, saying that journal files
> containing entries older then MaxRetentionSec are deleted, which can
> include newer entries. But sure, the documentation can be more specific
> about this aspect.
>
> > I would expect journal files to be discarded only when all of its
> > entries have expired, or, at the very minimum, manual should warn the
> > user that if he/she wants to keep a whole week of logs, then the value
> > of MaxRetentionSec should be greater than a week.
>
> This really is an upstream issue, so it would be great if you can file a
> bug at https://github.com/systemd/systemd/issues/new
>
Closing. The feature works as documented.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature
--- End Message ---
_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers