Configure log facility in unbound

Is it possible to change the logging facility from LOG_DAEMON to, say
local3?

Is it possible to change the logging facility from LOG_DAEMON to,
say, local3?

In utils/log.c, one finds:

   openlog(ident, LOG_NDELAY, LOG_DAEMON);

So, not without changing the src.

-JimC

I've become tired of unbound flooding my messages.log with 40,000 to
50,000 log records every time I start the system, effectively DOs'ing
my logs.....

Some syslog daemons can filter to different files based on the ident,
not just on the facility and priority.

As an example, I use this with metalog:

  Unbound :
    program_regex = "^unbound"
    logdir = "/var/log/unbound"
    break = 1

rsyslog.conf(5) describes a similar concept under Property-Based Filters.

I'm sure syslog-ng also has such a concept.

-JimC

What are those log messages? Permission denied on sendto? Agl, I see
this fix is in svn trunk but has not been released yet. In the
upcoming unbound release, those permission denied problems should be
not-printed at lower verbosity to avoid spamming you.

Best regards,
   Wouter

Hi Mike,