How to stop unbound reporting any statistics?

Hi,

I do have the following (default) set in unbound.conf:

  # print statistics to the log (for every thread) every N seconds.
  # Set to "" or 0 to disable. Default is disabled.
  statistics-interval: 0

But: Whenever I do stop unbound, a lot of statistics are reported like:

  <user.info>: stopping /usr/local/etc/rc.d/unbound
  <daemon.info> unbound[12792]: [12792:0] info: service stopped (unbound 1.10.1).
  <daemon.info> unbound[12792]: [12792:0] info: server stats for thread 0: 1 queries, 0 answers from cache, 1 recursions, 0 prefetch, 0 rejected by ip ratelimiting
  <daemon.info> unbound[12792]: [12792:0] info: server stats for thread 0: requestlist max 0 avg 0 exceeded 0 jostled 0
  <daemon.info> unbound[12792]: [12792:0] info: average recursion processing time 1.667362 sec
  <daemon.info> unbound[12792]: [12792:0] info: histogram of recursion processing times
  <daemon.info> unbound[12792]: [12792:0] info: [25%]=0 median[50%]=0 [75%]=0
    <daemon.info> unbound[12792]: [12792:0] info: lower(secs) upper(secs) recursions
  <daemon.info> unbound[12792]: [12792:0] info: 0.032768 0.065536 1
  <daemon.info> unbound[12792]: [12792:0] info: 0.262144 0.524288 2
  <daemon.info> unbound[12792]: [12792:0] info: 0.524288 1.000000 1
  <daemon.info> unbound[12792]: [12792:0] info: 4.000000 8.000000 1
  …

This takes a very loooong time (recent FreeBSD 12.1-STABLE, unbound version 1.10.1). Sometimes > 10 minutes.

How can I tell unbound to forget about that, and just stop right away by omitting those unwanted statistics?

Thanks and regards,
Michael

Hi Michael,

Hi Eduardo,