date and time from Log

Topics that doesn't fall into the categories above
Post Reply
zaininpf
Posts: 4
Joined: Mon May 25, 2020 10:15 am

date and time from Log

Post by zaininpf »

Hello everyone,
observing the WTWARE log how can I trace the date and time when the events were recorded?

for example:
...
[rdpclient 774] [43.580642] 32-bit color.
[rdpclient 774] [101.741649] errorInfo 0x00000000.
[rdpclient 774] [101.742186] Receive Disconnect Provider Ultimatum.
[gm] [101.742224] TSClient (sessionId 2, pid 774) gracefully end.
...

thanks
Andrea

aka
SUPPORT
SUPPORT
Posts: 825
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: date and time from Log

Post by aka »

[101.741649] is number of seconds since boot.

zaininpf
Posts: 4
Joined: Mon May 25, 2020 10:15 am

Re: date and time from Log

Post by zaininpf »

Thanks for the reply.
So if I don't know the boot date and time, can't I go back to the time of the event? :(

aka
SUPPORT
SUPPORT
Posts: 825
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: date and time from Log

Post by aka »

Local terminal clock can be wrong. Raspberry has no clock at all. So we never rely on local clock.

You can send logs to another machine with unix-like syslog server (it's trivial service, google knows several for windows too) and with proper clock:

https://wtware.com/docs5/config.html#syslog

BTW, if user configures NTP (ntp= config option or 042 DHCP parameter), we can put real date and time instead of seconds since boot. I'll try to implement it. But not in short term, sorry.

zaininpf
Posts: 4
Joined: Mon May 25, 2020 10:15 am

Re: date and time from Log

Post by zaininpf »

OK, tahnks!

Post Reply