Discussion:
[Unbound-users] Unbound Log Verbosity
u***@fongaboo.com
2015-02-09 03:34:13 UTC
Permalink
I raised verbosity to 5 and reloaded. Confirmed:

| /etc/unbound # unbound-control status
| version: 1.4.20
| verbosity: 5
| threads: 4
| modules: 2 [ validator iterator ]
| uptime: 600 seconds
| unbound (pid 66544) is running...

Shouldn't I be able to see individual queries?


-------------------------------------------------------------------------
shot through the heart ooh baby do you know what that's worth
and you're to blame ooh heaven is a place on earth
darling you give love they say in heaven love comes first
a bad name we'll make heaven a place on earth
ORBITAL "Halcyon Live"
W.C.A. Wijngaards
2015-02-09 09:12:13 UTC
Permalink
Hi Fongaboo,
| /etc/unbound # unbound-control status | version: 1.4.20 |
verbosity: 5 | threads: 4 | modules: 2 [ validator iterator ] |
uptime: 600 seconds | unbound (pid 66544) is running...
Shouldn't I be able to see individual queries?
Yes, it logs every query in detail, and with query source. Where is
unbound logging to? Syslog or a log file? The last statement in
unbound.conf determines which one (use syslog yes or use log-file
filename). You could try to use a logfile, because perhaps the syslog
connection fails and unbound cannot log at all (because syslog is
thwarted by chroot or permissions perhaps). Unbound needs to be able
to (re)open the log-file (as file permissions), so the logfile, and
perhaps directory, has to allow those permissions. When you kill -HUP
unbound it attempts to re-open the logfile with its (downlevelled)
user permissions - this is for log file rotation - but if it does not
have permission it cannot log.

Best regards, Wouter
-------------------------------------------------------------------------
shot through the heart ooh baby do you know what that's worth
and you're to blame ooh heaven is a place
on earth darling you give love they say in heaven
love comes first a bad name we'll make
heaven a place on earth ORBITAL
"Halcyon Live" _______________________________________________
http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
u***@fongaboo.com
2015-02-10 18:40:55 UTC
Permalink
Thank you.

Strangely, I found no entries in unbound.conf related to logging other
than the verbosity.

I tried adding...

syslog: yes
log-queries: yes


...but when I run unbound-checkconf, I got:

/var/unbound/unbound.conf:8: error: unknown keyword 'syslog'
/var/unbound/unbound.conf:8: error: stray ':'
/var/unbound/unbound.conf:8: error: unknown keyword 'yes'
read /var/unbound/unbound.conf failed: 3 errors in configuration file
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi Fongaboo,
| /etc/unbound # unbound-control status | version: 1.4.20 |
verbosity: 5 | threads: 4 | modules: 2 [ validator iterator ] |
uptime: 600 seconds | unbound (pid 66544) is running...
Shouldn't I be able to see individual queries?
Yes, it logs every query in detail, and with query source. Where is
unbound logging to? Syslog or a log file? The last statement in
unbound.conf determines which one (use syslog yes or use log-file
filename). You could try to use a logfile, because perhaps the syslog
connection fails and unbound cannot log at all (because syslog is
thwarted by chroot or permissions perhaps). Unbound needs to be able
to (re)open the log-file (as file permissions), so the logfile, and
perhaps directory, has to allow those permissions. When you kill -HUP
unbound it attempts to re-open the logfile with its (downlevelled)
user permissions - this is for log file rotation - but if it does not
have permission it cannot log.
Best regards, Wouter
-------------------------------------------------------------------------
shot through the heart ooh baby do you know what that's worth
and you're to blame ooh heaven is a place
on earth darling you give love they say in heaven
love comes first a bad name we'll make
heaven a place on earth ORBITAL
"Halcyon Live" _______________________________________________
http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJU2HntAAoJEJ9vHC1+BF+NvAEP/2Irnt5de4npoVRoMBDRMN9b
Qe1zvIgH+lCy37gBC0VYeG4u9Z6qf7Y1bih/uzl2qO8MEUaoj8AfNev9ZHC3rnYC
PoQh+uEVd1jm+Tp0A5qRGS3TG730C9jALCmga5QfedeXRZ4oIgNxKtAfvcpsgjaV
kpixV0Qtz3oZ4rfQlCgLbEwvpmLABZdQ4EFnPRCNte49eRXKf7KrjgDIReBRDos5
NT0mJLXwpA7n18DXmVIINpKHLMoiyRZ+ch8hEAA/Fl0EpmM1CMdfUMQntYjfUvnk
Jjb5wiK5msEaz4uu+ZUZ0Cp2dkxRnbzIMu7oSQvB9NjKs7j7wg8wswcxdqzabCit
UbswOtMKmJPnfMg9amNI8nNNx0uz/WaFZG/NljzjbPpoOGIV6rsZkdi57NZ7+ID3
n2BzXPb2qchWac4k9BR8RnzwY8OV2aAiFk7IGGY/Z7gvbxhgn7j3zzuLvNkKBvt6
oE+bsow15lJYaB99KSCoSrYs9AsofZSQQP9mlIFiahoTijAp9wZ6MfpIxEKKkB6f
Aw20ctHfHFtvoXE8CPwulEh11uZs+K3lvG60G5a1u7SMiApaf0pIbyZTjXbqR8B+
w2JIUl+OEtP6n8gIDYSZ359e/AvQqjIK6lZ8/SzCx/5+D+K+fGM94rI0lF/WSoHW
lWP0duxZyx8qIL+ISviZ
=YXIm
-----END PGP SIGNATURE-----
_______________________________________________
Unbound-users mailing list
http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
u***@fongaboo.com
2015-02-11 06:26:05 UTC
Permalink
Nevermind. The option is actually 'use-syslog: yes'.

Working now...
Post by u***@fongaboo.com
Thank you.
Strangely, I found no entries in unbound.conf related to logging other than
the verbosity.
I tried adding...
syslog: yes
log-queries: yes
/var/unbound/unbound.conf:8: error: unknown keyword 'syslog'
/var/unbound/unbound.conf:8: error: stray ':'
/var/unbound/unbound.conf:8: error: unknown keyword 'yes'
read /var/unbound/unbound.conf failed: 3 errors in configuration file
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi Fongaboo,
| /etc/unbound # unbound-control status | version: 1.4.20 |
verbosity: 5 | threads: 4 | modules: 2 [ validator iterator ] |
uptime: 600 seconds | unbound (pid 66544) is running...
Shouldn't I be able to see individual queries?
Yes, it logs every query in detail, and with query source. Where is
unbound logging to? Syslog or a log file? The last statement in
unbound.conf determines which one (use syslog yes or use log-file
filename). You could try to use a logfile, because perhaps the syslog
connection fails and unbound cannot log at all (because syslog is
thwarted by chroot or permissions perhaps). Unbound needs to be able
to (re)open the log-file (as file permissions), so the logfile, and
perhaps directory, has to allow those permissions. When you kill -HUP
unbound it attempts to re-open the logfile with its (downlevelled)
user permissions - this is for log file rotation - but if it does not
have permission it cannot log.
Best regards, Wouter
-------------------------------------------------------------------------
shot through the heart ooh baby do you know what that's worth
and you're to blame ooh heaven is a place
on earth darling you give love they say in heaven
love comes first a bad name we'll make
heaven a place on earth ORBITAL
"Halcyon Live" _______________________________________________
http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJU2HntAAoJEJ9vHC1+BF+NvAEP/2Irnt5de4npoVRoMBDRMN9b
Qe1zvIgH+lCy37gBC0VYeG4u9Z6qf7Y1bih/uzl2qO8MEUaoj8AfNev9ZHC3rnYC
PoQh+uEVd1jm+Tp0A5qRGS3TG730C9jALCmga5QfedeXRZ4oIgNxKtAfvcpsgjaV
kpixV0Qtz3oZ4rfQlCgLbEwvpmLABZdQ4EFnPRCNte49eRXKf7KrjgDIReBRDos5
NT0mJLXwpA7n18DXmVIINpKHLMoiyRZ+ch8hEAA/Fl0EpmM1CMdfUMQntYjfUvnk
Jjb5wiK5msEaz4uu+ZUZ0Cp2dkxRnbzIMu7oSQvB9NjKs7j7wg8wswcxdqzabCit
UbswOtMKmJPnfMg9amNI8nNNx0uz/WaFZG/NljzjbPpoOGIV6rsZkdi57NZ7+ID3
n2BzXPb2qchWac4k9BR8RnzwY8OV2aAiFk7IGGY/Z7gvbxhgn7j3zzuLvNkKBvt6
oE+bsow15lJYaB99KSCoSrYs9AsofZSQQP9mlIFiahoTijAp9wZ6MfpIxEKKkB6f
Aw20ctHfHFtvoXE8CPwulEh11uZs+K3lvG60G5a1u7SMiApaf0pIbyZTjXbqR8B+
w2JIUl+OEtP6n8gIDYSZ359e/AvQqjIK6lZ8/SzCx/5+D+K+fGM94rI0lF/WSoHW
lWP0duxZyx8qIL+ISviZ
=YXIm
-----END PGP SIGNATURE-----
_______________________________________________
Unbound-users mailing list
http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
_______________________________________________
Unbound-users mailing list
http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
W.C.A. Wijngaards
2015-02-11 06:30:12 UTC
Permalink
Hi Fongaboo,

It is use-syslog: yes, not syslog: yes.

Best regards,
Wouter
Post by u***@fongaboo.com
Thank you.
Strangely, I found no entries in unbound.conf related to logging
other than the verbosity.
I tried adding...
syslog: yes log-queries: yes
/var/unbound/unbound.conf:8: error: unknown keyword 'syslog'
/var/unbound/unbound.conf:8: error: stray ':'
/var/unbound/unbound.conf:8: error: unknown keyword 'yes' read
/var/unbound/unbound.conf failed: 3 errors in configuration file
Hi Fongaboo,
| /etc/unbound # unbound-control status | version: 1.4.20 |
verbosity: 5 | threads: 4 | modules: 2 [ validator iterator ]
| uptime: 600 seconds | unbound (pid 66544) is running...
Shouldn't I be able to see individual queries?
Yes, it logs every query in detail, and with query source. Where
is unbound logging to? Syslog or a log file? The last statement
in unbound.conf determines which one (use syslog yes or use
log-file filename). You could try to use a logfile, because
perhaps the syslog connection fails and unbound cannot log at all
(because syslog is thwarted by chroot or permissions perhaps).
Unbound needs to be able to (re)open the log-file (as file
permissions), so the logfile, and perhaps directory, has to allow
those permissions. When you kill -HUP unbound it attempts to
re-open the logfile with its (downlevelled) user permissions - this
is for log file rotation - but if it does not have permission it
cannot log.
Best regards, Wouter
-------------------------------------------------------------------------
shot through the heart ooh baby do you know what that's
Post by u***@fongaboo.com
worth
and you're to blame ooh heaven is a
place on earth darling you give love they
say in heaven love comes first a bad name
we'll make heaven a place on earth ORBITAL "Halcyon Live"
_______________________________________________ Unbound-users
http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
_______________________________________________ Unbound-users
http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
Loading...