Maintained by: NLnet Labs

[Unbound-users] Log rotation for unbound

Russell Sutherland
Thu Apr 19 21:47:36 CEST 2012


Is there a FAQ which indicates how one performs log rotation using unbound?

I am using version 1.4.16 under RHEL:

# /usr/local/sbin/unbound-control status
version: 1.4.16
verbosity: 3
threads: 1
modules: 2 [ validator iterator ]
uptime: 85731 seconds
unbound (pid 2463) is running...

At the present time I am logging directly to a file:

logfile: unbound.log

With syslog turned off:

use-syslog: no

I am not sure what effect the command:


/usr/local/sbin/unbound-control  log_reopen

 does.

I would like to run a cron job, perhaps once per hour to rotate logs, compress files etc.

Thanks in advance.

--
Russell Sutherand  I+TS
e: russell.sutherland at utoronto.ca
t: +1.416.978.0470
f: +1.416.978.6620
m: +1.416.803.0080
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://unbound.nlnetlabs.nl/pipermail/unbound-users/attachments/20120419/3fca2cdf/attachment.html>