Okay, it’s not a “quality of life” question but rather a “how do I put a bandaid so I don’t feel this tiny thorn in my back side” question.
I have an IoT device (oil tank level monitor) that very (very!) frequently disconnects and reconnects.
This process and the associated DHCP lease assignment creates these log entries:
I don’t want to see them in my log, but I want to continue to log the INFO topic.
Is the behavior normal: Whenever a wifi client disconnects and reconnects, even though the DHCP server sees the assigned (or dedicated or even static) IP, both the wifi dis- and re- connect as well as the DHCP assignment will be logged under topic INFO?
By definition DHCP client has to assume network change when connection droos (even by s fraction of a second). So it’ll do it’s job.
When it comes to logging: I don’t think it’s possible to configure logging so that it ignores certain device (e.g. certain MAC address) … but IIRC it’s possible to filter out such logs when print-ing log (but don’t ask me how … real men don’t read logs )
Personally I just read logs whenever happens anything I feel I need to investigate. If I manage to get around the time line, then usually there are not too many log entries around that time so I tend not to filter out anything. Sometimes this proves crucial as things tend to happen in some sequence and the starting event isn’t necessarily from the same general category as the one which triggers my interest.
I have IoT stuff at home connecting/disconnecting like every 5 to 10 minutes. Somewhere between those intervals. Really small packets to some server I could link to the supplier.
Another device toggles it’s network connection every hour, on the clock.
I simply don’t look at it … those things are on a separate isolated VLAN anyhow where they can only get out and nothing else.