Re: Logging issue with bind
On Thu, 2012-02-16 at 19:06 +0100, Raven wrote: On Thu, 2012-02-16 at 09:55 -0600, Jeremy C. Reed wrote: On Fri, 17 Feb 2012, Mark Andrews wrote: Do: rndc querylog or querylog yes; But the previous email showed rndc status had: query logging is ON Indeed. I tried disabling and re-enabling it, but to no avail. Don't really know where to look now.. -RV All further tests haven't produced any results. Should I escalate this with the bind9-bug or to the debian package maintainer? -RV ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Logging issue with bind
On Fri, 17 Feb 2012, Andrea Gozzi wrote: All further tests haven't produced any results. Any related log messages in your other named logging about it. (Maybe some isc_stdio_open error for example?) Why were the permissions of your log file rwxrwxrwx? (Why executable? Why writable by other?) (Your other email showed it changed to rw-r--r-- so maybe this is unrelated.) Just to be clear, did named create the zero byte file, or did you manually create it? Is it possible there weren't any queries? (Maybe testing wrong system?) Maybe your rndc is configured to control a different server so the querylog was enabled at wrong place? (But maybe not since your named.stats file is growing.) Should I escalate this with the bind9-bug or to the debian package maintainer? Anyone else reproduce problem? (I tested and it still works for me, but not same version.) What is the name and version of the Debian BIND package(s) you are using? ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Logging issue with bind
Hi guys. I am currently trying to setup query logging with bind on a debian server, but I seem unable to. I have the exact same setup on another debian box and it works flawlessly. I've been scratching my head all morning.. My configuration: /etc/bind/named.conf: logging { channel munin_log { file /var/log/bind9/query.log versions 30 size 15m; severity dynamic; print-time yes; }; category queries { munin_log; }; }; /etc/bind/named.conf.options: statistics-file /var/log/bind9/named.stats; List for the directory where logs should be: root@srv:~# ls -alh /var/log/bind9/ total 16K drwxr-xr-x 2 bind bind 4.0K 2012-02-16 10:25 . drwxr-xr-x 14 root root 4.0K 2012-02-16 10:21 .. -rw-r--r-- 1 bind bind 6.9K 2012-02-16 10:45 named.stats -rwxrwxrwx 1 bind bind0 2012-02-16 10:21 query.log Why does named.stats get written correctly and query.log not?? -RV ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Logging issue with bind
On 02/16/2012 09:48 AM, Raven wrote: Hi guys. I am currently trying to setup query logging with bind on a debian server, but I seem unable to. I have the exact same setup on another debian box and it works flawlessly. I've been scratching my head all morning.. My configuration: /etc/bind/named.conf: logging { channel munin_log { file /var/log/bind9/query.log versions 30 size 15m; severity dynamic; severity dynamic starts at 0 i.e. off. Just remove the severity line. ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Logging issue with bind
On Thu, 2012-02-16 at 09:54 +, Phil Mayers wrote: On 02/16/2012 09:48 AM, Raven wrote: Hi guys. I am currently trying to setup query logging with bind on a debian server, but I seem unable to. I have the exact same setup on another debian box and it works flawlessly. I've been scratching my head all morning.. My configuration: /etc/bind/named.conf: logging { channel munin_log { file /var/log/bind9/query.log versions 30 size 15m; severity dynamic; severity dynamic starts at 0 i.e. off. Just remove the severity line. Still not working I'm afraid. I deleted query.log and restarted bind, but the log's still empty: root@srv:~# ls -alh /var/log/bind9/ total 40K drwxr-xr-x 2 bind bind 4.0K 2012-02-16 11:53 . drwxr-xr-x 14 root root 4.0K 2012-02-16 10:21 .. -rw-r--r-- 1 bind bind 31K 2012-02-16 12:11 named.stats -rw-r--r-- 1 bind bind0 2012-02-16 11:53 query.log And I double checked with rndc: root@srv:~# rndc status version: 9.7.3 CPUs found: 4 worker threads: 16 number of zones: 31 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is ON recursive clients: 0/0/1000 tcp clients: 0/100 server is up and running What else could it be? Some debian-specific bug? -RV ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Logging issue with bind
Von: Raven ra...@vp44.net I am currently trying to setup query logging with bind on a debian server, but I seem unable to. logging { channel munin_log { file /var/log/bind9/query.log versions 30 size 15m; severity dynamic; severity dynamic starts at 0 i.e. off. correct. Just remove the severity line. No, let it be, it's nothing wrong with it. Still not working I'm afraid. What else could it be? Some debian-specific bug? No, nothing Debian-specific :-) You told Bind how to log queries in the config. Now you have to tell Bind that he should start with the querylogging. Do: rndc querylog Tom. -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Logging issue with bind
In message 20120216121954.94...@gmx.net, Tom Schmitt writes: Von: Raven ra...@vp44.net I am currently trying to setup query logging with bind on a debian server, but I seem unable to. logging { channel munin_log { file /var/log/bind9/query.log versions 30 size 15m; severity dynamic; severity dynamic starts at 0 i.e. off. correct. Just remove the severity line. No, let it be, it's nothing wrong with it. Still not working I'm afraid. What else could it be? Some debian-specific bug? No, nothing Debian-specific :-) You told Bind how to log queries in the config. Now you have to tell Bind that he should start with the querylogging. Do: rndc querylog or querylog yes; Tom. -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Logging issue with bind
On Fri, 17 Feb 2012, Mark Andrews wrote: Do: rndc querylog or querylog yes; But the previous email showed rndc status had: query logging is ON ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Logging issue with bind
On Feb 16 2012, Phil Mayers wrote: On 02/16/2012 09:48 AM, Raven wrote: Hi guys. I am currently trying to setup query logging with bind on a debian server, but I seem unable to. I have the exact same setup on another debian box and it works flawlessly. I've been scratching my head all morning.. My configuration: /etc/bind/named.conf: logging { channel munin_log { file /var/log/bind9/query.log versions 30 size 15m; severity dynamic; severity dynamic starts at 0 i.e. off. No 0 is equivalent to info, except in one case: ARM The default_debug channel has the special property that it only ARM produces output when the server's debug level is nonzero. It's actually quite a pain that one can't define one's own channels with that special property. -- Chris Thompson Email: c...@cam.ac.uk ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Logging issue with bind
On Thu, 2012-02-16 at 09:55 -0600, Jeremy C. Reed wrote: On Fri, 17 Feb 2012, Mark Andrews wrote: Do: rndc querylog or querylog yes; But the previous email showed rndc status had: query logging is ON Indeed. I tried disabling and re-enabling it, but to no avail. Don't really know where to look now.. -RV ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Logging issue with bind
On 02/16/2012 06:02 PM, Chris Thompson wrote: severity dynamic starts at 0 i.e. off. No 0 is equivalent to info, except in one case: Ah, my mistake. I took a quick look at the posters config and saw this as the only difference from our standard one, hence called it out. Sorry for the confusion. ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users