When I enable the ntp client and set the time zone to +08: 00, I use “/ log get * time” to get the log time.
When the current time is before 8:00, yesterday’s log only shows the time, for example: “17:30:00”. But today’s log is added with a date, for example: “apr / 22 04:37:44”. This is incorrect.
If the current time is after 8:00, the yesterday ’s log will be displayed with date added, and today ’s log will only show the time.
But when I disable the ntp client and set the time zone to 00:00, and next day I use “/ log get * time” to get the log time is correct. There is no problem
I think the month/date is added if its more than 24 hour since its logged. Nothing to do with timezone/NTP etc.
apr/14 12:43:14 ssh,error disabling '/ip ssh strong-crypto' may help
09:19:17 system,error,critical login failure for user test from 10.10.10.178 via ssh
I agree this not a good standard, and makes script hard to create. So MT if you read this, add month and date to all log, and do not use name, only number.
Winbox shows month/date/year for all logs, but not from terminal!!!
Hello,
This is used only for viewing logs on the router, not for log collectors.
If yu want to collect logs, set up syslog server and send all logs to that server. Then on your server you can set timestamp in any human readable format you like.
My response to this is that not all need or uses external syslog server, and time should be shown in an uniform and simple way in RouterOS.
Using time in script is not easy when time format used do change.