[syslog-ng] syslog doesn't log if system date is older than date on last reboot

Abhi Arora engr.abhiarora at gmail.com
Tue Feb 4 08:29:02 UTC 2020


Continuing my previous email....
> Can you share your configuration, please?
I have shared over my last email

> Are you using system() source?
I didn't get you. Please elaborate. You mean source code system() library
function. If that you mean, then no we don't use it.

On Tue, Feb 4, 2020 at 1:24 PM Nagy Gábor <gabor.hl at gmail.com> wrote:

> Hello!
>
> We have seen issues like this in case of systemd, but I dont know if your
> embedded system runs systemd.
>
> Can you share your configuration, please?
> Are you using system() source?
>
> Regards,
> Gábor
>
> On Tue, 4 Feb 2020, 08:33 Abhi Arora, <engr.abhiarora at gmail.com> wrote:
>
>> Hi,
>> I have one embedded device running Linux which doesn't have RTC. So it
>> loses date and time after every reboot.
>>
>> uname -a returns:
>>
>> 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.
>>
>> Please help me in debugging the issue and fixing it.
>>
>>
>>
>> ______________________________________________________________________________
>> 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
>>
>>
> ______________________________________________________________________________
> 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/20200204/4edfc9db/attachment.html>


More information about the syslog-ng mailing list