Disabling certain log messages?

I guess maybe I’m missing something with logging in 2.9. While the DHCP logs are interesting, they tend to fill up the log and we don’t normally need these messages. Is there a way to make a “Null” log action and set DHCP to that…or, how can one selectively disable certain logs without sending them to a syslog server? I find the logging in 2.9 flexible, but awkward (still).

[admin@MT] system logging> print
Flags: X - disabled, I - invalid
 #   TOPICS                                                               ACTION PREFIX
 0   info                                                                 memory
 1   error                                                                memory
 2   warning                                                              memory
 3   critical                                                             echo
[admin@MT] system logging> set 0 topics=info,!dhcp
[admin@MT] system logging>
[admin@MT] system logging> print
Flags: X - disabled, I - invalid
 #   TOPICS                                                               ACTION PREFIX
 0   info                                                                 memory
     !dhcp
 1   error                                                                memory
 2   warning                                                              memory
 3   critical                                                             echo
[admin@MT] system logging>

Hmmm…I knew it was too easy to figure out. Thanks :slight_smile: