[syslog-ng] syslog-ng doesn't log if system date is older (in the past) than date on last shutdown

Abhi Arora engr.abhiarora at gmail.com
Tue Feb 18 10:25:19 UTC 2020


We aren't getting the logs if the system date and time is older (in the
past). We need to fix it and debug the root-cause so that irrespective of
the system date and time, logs should get properly logged.

On Tue, Feb 18, 2020 at 3:53 PM Ruben Safir <ruben at mrbrklyn.com> wrote:

> On 2/18/20 3:22 AM, Abhi Arora wrote:
> > Hi,
> > I have one embedded device running Linux which doesn't have RTC. So it
> > loses date and time after every halt.
> >
> > *uname -a:*
> > *Linux f1 4.9.175+g0746276 #1 SMP PREEMPT Tue Jan 14 03:09:19 UTC 2020
> > armv7l armv7l armv7l GNU/Linux*
> >
> > I have observed after every reboot, my board starts with some older time
> > and my application running in user-space corrects the system time from a
> > timestamp saved on a file (which is updated every hour). Application also
> > connects with some server to get latest time. I have noticed that if
> system
> > date and time is less than date and time which it had at last shutdown,
> > then syslog doesn't get any logs from my applications till it has a time
> > atleast greater than  date and time which it had at last shutdown.
>
>
> so what is the problem?
>
>
> --
> So many immigrant groups have swept through our town
> that Brooklyn, like Atlantis, reaches mythological
> proportions in the mind of the world - RI Safir 1998
> http://www.mrbrklyn.com
> DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
>
> http://www.nylxs.com - Leadership Development in Free Software
> http://www.brooklyn-living.com
>
> Being so tracked is for FARM ANIMALS and extermination camps,
> but incompatible with living as a free human being. -RI Safir 2013
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20200218/7a5954d5/attachment-0001.html>


More information about the syslog-ng mailing list