Skip to content
Contents
GuidesOpenWrt

Why OpenWrt remote syslog timestamps always end in .000

Before changing the router clock, compare local output, the raw message at the collector and the stored event time. Two rows ending in .000 do not establish when the events occurred within that second.

Before changing the router clock, compare local output, the raw message at the collector and the stored event time. Two rows ending in .000 do not establish when the events occurred within that second.

Mark two messages

Run these commands over SSH with OpenWrt’s ubox logread. Look for the extra time in brackets. Using -t on a local reader changes only its output. If the option is missing, identify the installed logger first.

logger -t gmclock first && logger -t gmclock second
logread -t | grep gmclock

Read the payload before parsing

Filter for gmclock at a collector you control. The default remote command in OpenWrt 24.10.2 omits -t and the traditional header stops at seconds. In our isolated comparison, the forwarding process for port 5514 omitted the flag. The one for 5515 used -t and inserted an extra time before the hostname. The original header stayed unchanged.

grep -F gmclock /path/to/raw-syslog.log

OpenWrt 25.12.6 · SSH · UDP 5514 / 5515

SSH on an OpenWrt 25.12.6 VM. The lower lines show UDP payloads copied back from the receiver with port labels added by the test tool. Both events landed at .030. No physical MT7621 was tested.

Find where precision disappears

If the payload has only seconds, it cannot recover sender milliseconds. If fractions are present, extract the bracketed value on a test input and check storage precision and display formatting. Verify that the hostname remains lab and keep arrival time separate. Restore the old parser if fields shift and stop temporary forwarders. Record a sequence number when strict ordering matters.

What does an OpenWrt configuration backup restore?

Explore hardware

Devices mentioned

Comments