There is no doubt in my mind that I'm just missing something fairly obvious, so I'm already wearing my asbestos underwear, flame on ....
I have a debug logging entry temporarily to capture a possible DHCP client problem (I think on the client, not in RouterOS), and at first I had set it up as:
/system/logging/add topics=dhcp
(I later updated it to topics=dhcp,!packet so that packets wouldn't be logged).
But, while the packets were also going into the log, I wanted to filter /log print output to not show the packets, to avoid seeing the mass of these messages in the output:
2026-05-21 09:49:25 dhcp,debug,packet ciaddr = 192.168.255.13
2026-05-21 09:49:25 dhcp,debug,packet yiaddr = 192.168.255.13
2026-05-21 09:49:25 dhcp,debug,packet siaddr = 192.168.255.5
2026-05-21 09:49:25 dhcp,debug,packet chaddr = 8C:16:45:01:CD:66
2026-05-21 09:49:25 dhcp,debug,packet Subnet-Mask = 255.255.255.192
2026-05-21 09:49:25 dhcp,debug,packet Router = 192.168.255.7
2026-05-21 09:49:25 dhcp,debug,packet Domain-Server = 192.168.255.5
2026-05-21 09:49:25 dhcp,debug,packet Domain-Name = "felines.org"
2026-05-21 09:49:25 dhcp,debug,packet Address-Time = 600
2026-05-21 09:49:25 dhcp,debug,packet Msg-Type = ack
2026-05-21 09:49:25 dhcp,debug,packet Server-Id = 192.168.255.5
I tried:
/log print follow where topics~"dhcp" && !topics~"dhcp,debug,packet"
/log print follow where topics~"dhcp" && !topics~"dhcp.debug.packet"
/log print follow where topics~"dhcp" && !topics~"packet"
But all of these still included the packet debug entries in the log output.
What is the correct /log print where ... syntax to include dhcp except for packet ?
thanks...
