Community discussions

MikroTik App
 
lanhampr
newbie
Topic Author
Posts: 34
Joined: Wed Aug 04, 2021 7:18 pm

Wrong log message order for DHCP messages.

Mon Feb 06, 2023 5:32 pm

I am running 7.7 and in my winbox log the DHCP assigned is logging before the deassigned message.

I see on another MT running 7.7 the order is correct. Hmm.
Last edited by lanhampr on Mon Feb 06, 2023 6:08 pm, edited 1 time in total.
 
erlinden
Forum Guru
Forum Guru
Posts: 1900
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: Wrong log message order for DHCP messages.

Mon Feb 06, 2023 5:57 pm

That wouldn't make sense...can you share /log print ?
 
lanhampr
newbie
Topic Author
Posts: 34
Joined: Wed Aug 04, 2021 7:18 pm

Re: Wrong log message order for DHCP messages.

Mon Feb 06, 2023 6:12 pm

The log printed from terminal is correct:
09:08:24 dhcp,info NOC3-CGNAT deassigned 100.64.4.227 for 76:56:9F:BB:0C:93 Z6250CC
09:08:24 dhcp,info NOC3-CGNAT assigned 100.64.4.227 for 76:56:9F:BB:0C:93 Z6250CC

but in Winbox log it's reversed.
You do not have the required permissions to view the files attached to this post.
 
erlinden
Forum Guru
Forum Guru
Posts: 1900
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: Wrong log message order for DHCP messages.

Mon Feb 06, 2023 6:16 pm

Strange...haven't seen this behaviour. The log isn't ordered on the #column...that would help :o
 
lanhampr
newbie
Topic Author
Posts: 34
Joined: Wed Aug 04, 2021 7:18 pm

Re: Wrong log message order for DHCP messages.

Tue Feb 07, 2023 2:20 am

I order by time.
 
erlinden
Forum Guru
Forum Guru
Posts: 1900
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: Wrong log message order for DHCP messages.

Tue Feb 07, 2023 10:03 am

I order by time.
Ok, that is your problem...
 
lanhampr
newbie
Topic Author
Posts: 34
Joined: Wed Aug 04, 2021 7:18 pm

Re: Wrong log message order for DHCP messages.

Tue Feb 07, 2023 7:33 pm

I guess I don't get that. I want to see log messages in chronological order. A release should show before an assign based on time.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11381
Joined: Thu Mar 03, 2016 10:23 pm

Re: Wrong log message order for DHCP messages.

Tue Feb 07, 2023 8:44 pm

The log entries probably followed each other with short time difference, small enough to have timestamp (stored with a second resolution) the same. If you'd let winbox show logs without sorting, you'd get them in order as they were recorded. Since you enabled sorting, you get it ... but entries with same timestamp can be sorted randomly.

Who is online

Users browsing this forum: DanMos79 and 58 guests