I find that libvirt clogs up syslog with trivial DHCP notifications. I know how to configure alternate logging with dnsmasq directly via 'log-facility' and/or 'quiet-dhcp' options but the XML format used by libvirt appears to have no equivalent options. Is there a way to reduce syslog spam from libvirt without switching to a system-wide dnsmasq service?
On 09/04/2017 09:17 PM, Shannon wrote:> I find that libvirt clogs up syslog with trivial DHCP notifications. I > know how to configure alternate logging with dnsmasq directly via > 'log-facility' and/or 'quiet-dhcp' options(Unfortunately there isn't currently any knob you can easily turn to reduce dnsmasq's logs) Interesting. A long time ago I was annoyed by all the logging produced by dnsmasq and searched the standard/sample dnsmasq.conf for an option to reduce the logging, but all I saw were options to *increase* it! I guess I didn't look far enough. It would be nice for libvirt to take advantage of this, but since the logging levels of other parts of libvirt are handled in libvirtd.conf and qemu.conf, maybe it would be better to add the option there rather than making it a part of the config for each network. (on the other hand, it might be nice to be able to have more verbose logs for some networks than for others). Does anyone have an opinion about this? Maybe we could have a "dhcp_quiet" option in libvirtd.conf? (alternately I guess we could a <log> element to networks, but that would require something sufficiently generic that it would also be useful if someone decided to, e.g., write a network driver that used the ISC dhcpd instead of dnsmasq). Adding a conf file option could be a good candidate for a "My first libvirt patch" task for someone...> but the XML format used by libvirt appears to have no equivalent > options. Is there a way to reduce syslog spam from libvirt without > switching to a system-wide dnsmasq service? > > _______________________________________________ > libvirt-users mailing list > libvirt-users at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users >
On Wed, Sep 13, 2017 at 12:59:57PM -0400, Laine Stump wrote:> On 09/04/2017 09:17 PM, Shannon wrote: > > I find that libvirt clogs up syslog with trivial DHCP notifications. I > > know how to configure alternate logging with dnsmasq directly via > > 'log-facility' and/or 'quiet-dhcp' options > > (Unfortunately there isn't currently any knob you can easily turn to > reduce dnsmasq's logs) > > Interesting. A long time ago I was annoyed by all the logging produced > by dnsmasq and searched the standard/sample dnsmasq.conf for an option > to reduce the logging, but all I saw were options to *increase* it! I > guess I didn't look far enough. > > It would be nice for libvirt to take advantage of this, but since the > logging levels of other parts of libvirt are handled in libvirtd.conf > and qemu.conf, maybe it would be better to add the option there rather > than making it a part of the config for each network. (on the other > hand, it might be nice to be able to have more verbose logs for some > networks than for others). > > Does anyone have an opinion about this? Maybe we could have a > "dhcp_quiet" option in libvirtd.conf? (alternately I guess we could a > <log> element to networks, but that would require something sufficiently > generic that it would also be useful if someone decided to, e.g., write > a network driver that used the ISC dhcpd instead of dnsmasq).NB it would want to be in /etc/libvirt/network.conf, since this would be specific to the network driver. It seems reasonable to add such a thing. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Have you considered filtering out the messages at your syslog daemon? On 05/09/17 02:17, Shannon wrote:> I find that libvirt clogs up syslog with trivial DHCP notifications. I > know how to configure alternate logging with dnsmasq directly via > 'log-facility' and/or 'quiet-dhcp' options but the XML format used by > libvirt appears to have no equivalent options. Is there a way to > reduce syslog spam from libvirt without switching to a system-wide > dnsmasq service? > > _______________________________________________ > libvirt-users mailing list > libvirt-users@redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users