[SOLVED] Syslog time is wrong

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> General Questions
Author Message
tgvrfcedx
DD-WRT User


Joined: 11 Sep 2021
Posts: 133

PostPosted: Sat Jun 18, 2022 7:14    Post subject: [SOLVED] Syslog time is wrong Reply with quote
i noticed in SYSLOG that the time and date is wrong? but the time on the web portal is right? and i have NTP setup and working?

am i missing something? thanks
Sponsor
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Jun 18, 2022 8:02    Post subject: Reply with quote
If you are talking about the first entries in syslog that start on Jan 1 01:00:11 its perfectly normal and will go away after NTP updates, assuming you have NTP properly setup.

99% of consumer routers dont have a real time clock (RTC) so when you reset them/reboot them on boot there is no such valid time/date information. So initial date/time starts from January 1st 1970 01:00:00

You will notice the Jan 1 01:00:11 entries are all for the boot/initialization process. After this NTP runs adn walla.
Code:
snip......
Jan 1 01:00:42 router user.info : [process_monitor] : successfully started
Jan 1 01:00:42 router kern.notice kernel: [ 42.756801] SCSI subsystem initialized
Jan 1 01:00:42 router daemon.debug ntpclient[1727]: Connecting to 2.pool.ntp.org [212.99.225.86] ...
Jun 18 09:28:09 router daemon.info ntpclient[1727]: Time set from 2.pool.ntp.org [212.99.225.86].
Jun 18 09:28:09 router daemon.info process_monitor[1726]: Cyclic NTP Update success (servers 2.pool.ntp.org 212.18.3.19 88.99.174.22)
Jun 18 09:28:09 router daemon.info process_monitor[1726]: Local timer delta is 1655537247
snip......

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
tgvrfcedx
DD-WRT User


Joined: 11 Sep 2021
Posts: 133

PostPosted: Sat Jun 18, 2022 14:10    Post subject: Reply with quote
thank you, can confirm the time/date updated later on.

can the log be displayed new to old, rather old to new
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Jun 18, 2022 15:06    Post subject: Reply with quote
Its a chronological record. there is not point of the opposite that's not how syslog works. You can always search the web, since you like to figure things out by yourself.

Type man syslogd on the web to see the manual for it. Should be top hits on that.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
tgvrfcedx
DD-WRT User


Joined: 11 Sep 2021
Posts: 133

PostPosted: Sun Jun 19, 2022 3:04    Post subject: Reply with quote
"there is not point of the opposite" ... i just told you the point... so the new data is at the start and i dont need to go to the last page every time.

and do people here have to SOOK in like every reply?? is that like a thing with this forum? have all your periods sync up?

the-joker wrote:
Its a chronological record. there is not point of the opposite that's not how syslog works. You can always search the web, since you like to figure things out by yourself.

Type man syslogd on the web to see the manual for it. Should be top hits on that.
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1899

PostPosted: Sun Jun 19, 2022 3:22    Post subject: Reply with quote
The syslog file is written from point of boot-up until present. This can rotate, depending on the syslog mechanism configuration . To write it backwards would require reading the logfile backwards at the same time it is writing in forwards. There are some folks who'd like an infinite scrolling page frame so there's no clicking 'next'. Going to stop myself there, so I don't get a talkin' to.
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6410
Location: UK, London, just across the river..

PostPosted: Sun Jun 19, 2022 10:21    Post subject: Reply with quote
tgvrfcedx wrote:
"there is not point of the opposite" ... i just told you the point... so the new data is at the start and i dont need to go to the last page every time.

and do people here have to SOOK in like every reply?? is that like a thing with this forum? have all your periods sync up?


just log via CLI and issue:

cat /tmp/var/log/messages

as simple as that... the developers are not working especially for you "ppl"...but for the ppl

if we have to take you seriously, than Japan and Hebrew log style is needed too.... Laughing Laughing

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55179 WAP
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55460 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55460 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55363 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sun Jun 19, 2022 10:39    Post subject: Reply with quote
tgvrfcedx wrote:
"there is not point of the opposite" ... i just told you the point... so the new data is at the start and i dont need to go to the last page every time.

I understood what you asked, and I explained that is not how syslog works, you just ignore what isn't convenient for your narrative and take something out of that context just to be double rude.

You will need to research this yourself, especially since you prefer to learn how to yourself. Right?

tgvrfcedx wrote:
and do people here have to SOOK in like every reply?? is that like a thing with this forum? have all your periods sync up?

And this is now, the time I give you your second and final warning, this kind of disrespectful attitude against forums rules and common decency. No one here ever disrespected you.

You have a choice, there are plenty other communities out there.

Locking thread. Hows that for a sync?

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
Display posts from previous:    Page 1 of 1
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum