Re: BIND9 statistics vs. BIND8 statistics
Steven Carr wrote: > On 9 March 2015 at 06:25, Dowon Kim wrote: > > > > In BIND8, I can find statistics every hour in the log file (see here below) > > It was the default for BIND8 > > But in BIND9 I do not find same statistics in the log file. > > Please stop posting the same question over and over again. This is the > 3rd time I've seen this hit the list. If no one has answered then no > one has the answer. Yes. And it is not too hard to write a script to log hourly stats. #!/bin/sh curl -s -o- http://localhost:853/json/v1/server | jq -r '"NSTATS \(.["boot-time"]) \(.["current-time"])\(.qtypes | to_entries | reduce .[] as $qt (""; . + " \($qt.key)=\($qt.value)"))"' | logger -t named Tony. -- f.anthony.n.finchhttp://dotat.at/ Southeast Biscay, Southeast Fitzroy: Northerly 4 or 5 near finisterre, otherwise variable 4. Rough or very rough. Mainly fair. Moderate. ___ 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: BIND9 statistics vs. BIND8 statistics
On 9 March 2015 at 06:25, Dowon Kim wrote: > Hello, > > In BIND8, I can find statistics every hour in the log file (see here below) > It was the default for BIND8 > But in BIND9 I do not find same statistics in the log file. > I know statistics-channels usage in named.conf or rndc stats with dump > statistics file I define with statistics-file statement. > > I am curious why statistics every hour is not default in BIND9 > Does BIND9 have performance issue or something else? > > Oct 31 07:11:37 dnszone001 named[19854]: NSTATS 1320041497 1301566457 > TYPE0=50862 A=1764510765 NS=24977921 CNAME=5164425 SOA=8419048 MG=1 MR=1000 > NULL=1 WKS=43 PTR=121163683 HINFO=16119 MINFO=3 MX=497037649 TXT=46163614 > RP=3 > X25=7 ISDN=2 RT=1 SIG=1 KEY=9 PX=24 =450246677 LOC=117 NXT=1 > SRV=14855440 > NAPTR=42769 A6=14181975 SINK=1 TYPE43=32907 TYPE46=3100 TYPE47=2864 > TYPE48=85413 TYPE51=676 TYPE55=8 TYPE69=1 TYPE72=1 TYPE99=14892632 > TKEY=85936 > IXFR=2583 AXFR=301179 MAILB=7 ANY=37471162 > > > Thank you in advance for your help. > > Dowon Kim, Please stop posting the same question over and over again. This is the 3rd time I've seen this hit the list. If no one has answered then no one has the answer. ___ 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
BIND9 statistics vs. BIND8 statistics
Hello, In BIND8, I can find statistics every hour in the log file (see here below) It was the default for BIND8 But in BIND9 I do not find same statistics in the log file. I know statistics-channels usage in named.conf or rndc stats with dump statistics file I define with statistics-file statement. I am curious why statistics every hour is not default in BIND9 Does BIND9 have performance issue or something else? Oct 31 07:11:37 dnszone001 named[19854]: NSTATS 1320041497 1301566457 TYPE0=50862 A=1764510765 NS=24977921 CNAME=5164425 SOA=8419048 MG=1 MR=1000 NULL=1 WKS=43 PTR=121163683 HINFO=16119 MINFO=3 MX=497037649 TXT=46163614 RP=3 X25=7 ISDN=2 RT=1 SIG=1 KEY=9 PX=24 =450246677 LOC=117 NXT=1 SRV=14855440 NAPTR=42769 A6=14181975 SINK=1 TYPE43=32907 TYPE46=3100 TYPE47=2864 TYPE48=85413 TYPE51=676 TYPE55=8 TYPE69=1 TYPE72=1 TYPE99=14892632 TKEY=85936 IXFR=2583 AXFR=301179 MAILB=7 ANY=37471162 Thank you in advance for your help. Dowon Kim, ___ 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
BIND9 statistics
Hello, In BIND8, I can find statistics every hour in the log file (see here below) It was the default for BIND8 But in BIND9 I do not find same statistics in the log file. I know statistics-channels usage in named.conf or rndc stats with dump statistics file I define with statistics-file statement. I am curious why statistics every hour is not default in BIND9 Does BIND9 have performance issue or something else? Oct 31 07:11:37 dnszone001 named[19854]: NSTATS 1320041497 1301566457 TYPE0=50862 A=1764510765 NS=24977921 CNAME=5164425 SOA=8419048 MG=1 MR=1000 NULL=1 WKS=43 PTR=121163683 HINFO=16119 MINFO=3 MX=497037649 TXT=46163614 RP=3 X25=7 ISDN=2 RT=1 SIG=1 KEY=9 PX=24 =450246677 LOC=117 NXT=1 SRV=14855440 NAPTR=42769 A6=14181975 SINK=1 TYPE43=32907 TYPE46=3100 TYPE47=2864 TYPE48=85413 TYPE51=676 TYPE55=8 TYPE69=1 TYPE72=1 TYPE99=14892632 TKEY=85936 IXFR=2583 AXFR=301179 MAILB=7 ANY=37471162 Thank you in advance for your help. Dowon Kim, ___ 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
BIND9 statistics
Hello, In BIND8, I can find statistics every hour in the log file (see here below) It was the default for BIND8 But in BIND9 I do not find same statistics in the log file. I know statistics-channels usage in named.conf or rndc stats with dump statistics file I define with statistics-file statement. I am curious why statistics every hour is not default in BIND9 Does BIND9 have performance issue or something else? Oct 31 07:11:37 dnszone001 named[19854]: NSTATS 1320041497 1301566457 TYPE0=50862 A=1764510765 NS=24977921 CNAME=5164425 SOA=8419048 MG=1 MR=1000 NULL=1 WKS=43 PTR=121163683 HINFO=16119 MINFO=3 MX=497037649 TXT=46163614 RP=3 X25=7 ISDN=2 RT=1 SIG=1 KEY=9 PX=24 =450246677 LOC=117 NXT=1 SRV=14855440 NAPTR=42769 A6=14181975 SINK=1 TYPE43=32907 TYPE46=3100 TYPE47=2864 TYPE48=85413 TYPE51=676 TYPE55=8 TYPE69=1 TYPE72=1 TYPE99=14892632 TKEY=85936 IXFR=2583 AXFR=301179 MAILB=7 ANY=37471162 Thank you in advance for your help. Dowon Kim, ___ 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: BIND9 statistics-server: JSON?
> { "text": "snipped" } ;-) > Evan has merged this into master I know -- he's kept me busy looking and testing, and it looks very good. > and it will go out in 9.10, sometime > later this year. (We're also putting it into our new subscription > branch, which should be available for subscription customers in a few > weeks.) I pleaded and begged for it to be in 9.9.3b3, but, oh, well. (No worries: I'm grossly exaggerating.) > Thanks Jan-Piet!!! Thank you all for accepting the idea and implementing it cleanly! Looking very much forward to seeing this. -JP ___ 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: BIND9 statistics-server: JSON?
On Fri, 15 Feb 2013 06:57:10 +0100 Jan-Piet Mens wrote: > As a fan of BIND's statistics-server I was tempted to see if I could > reduce the size of the data (XML) named produces by adding an option > to produce JSON. The patch [1] (which is terribly quick and dirty) > does that. > > [1] https://gist.github.com/jpmens/4958763 I used to say: But in this case I'll say: { "text": "snipped" } > If I cleaned this up appropriately and attempted to add some (all?) of > the counters (I'm mostly interested in the list of zones which is why > I started with that) would there be a chance of ISC adding this to > stock BIND9? Even better: would ISC take on the work of doing it? ;-) Evan has merged this into master, and it will go out in 9.10, sometime later this year. (We're also putting it into our new subscription branch, which should be available for subscription customers in a few weeks.) Thanks Jan-Piet!!! -- Shane ___ 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: BIND9 statistics-server: JSON?
-Original Message- From: Jan-Piet Mens Date: Friday, February 15, 2013 12:57 AM To: "bind-users@lists.isc.org" Subject: BIND9 statistics-server: JSON? >As a fan of BIND's statistics-server I was tempted to see if I could >reduce the size of the data (XML) named produces by adding an option to >produce JSON. The patch [1] (which is terribly quick and dirty) does that. > >[1] https://gist.github.com/jpmens/4958763 Just wanted to say thanks for this, and hope it becomes official at some point. Many here prefer JSON anywhere it is available...sounds like we are not alone. ___ 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: BIND9 statistics-server: JSON?
On 15 Feb 2013, at 05:57, Jan-Piet Mens wrote: > would there be a chance of ISC adding this to stock > BIND9? Even better: would ISC take on the work of doing it? ;-) FWIW: +1 /Niall ___ 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
BIND9 statistics-server: JSON?
As a fan of BIND's statistics-server I was tempted to see if I could reduce the size of the data (XML) named produces by adding an option to produce JSON. The patch [1] (which is terribly quick and dirty) does that. [1] https://gist.github.com/jpmens/4958763 Accessing the URI /json on named would produce something like this: { "views": { "_default": [ { "name": "0.IN-ADDR.ARPA", "class": "IN", "serial": 0 }, { "name": "B.E.F.IP6.ARPA", "class": "IN", "serial": 0 }, [...] { "name": "ww.mens.de", "class": "IN", "serial": 201211565 } ], "_bind": [ { "name": "authors.bind", "class": "CH", "serial": 0 }, [...] ] } } Which of course is trivial to parse, with say, #!/usr/bin/env python import sys, json urllib2 BINDURI = 'http://127.0.0.1:8053/json' f = urllib2.urlopen(BINDURI) # print f.headers doc = json.loads(f.read()) views = doc['views'] for viewname, zonelist in views.iteritems(): print viewname for zone in zonelist: print "\t%s %-40s %s" % (zone['class'], zone['name'], zone['serial']) which in turn makes this: _default IN 0.IN-ADDR.ARPA 0 IN B.E.F.IP6.ARPA 0 IN ww.mens.de 201211565 [...] _bind CH authors.bind 0 [...] I haven't yet conducted tests as to which is actually faster to produce/transport/consume, but I _suspect_ it's JSON. :) If I cleaned this up appropriately and attempted to add some (all?) of the counters (I'm mostly interested in the list of zones which is why I started with that) would there be a chance of ISC adding this to stock BIND9? Even better: would ISC take on the work of doing it? ;-) Regards, -JP ___ 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: bind9 statistics
Hi Hugo, Look at the statistics-channels usage in named.conf. You can get nicely formatted data via http containing all of this information. Otherwise, check out statistics-file coupled with zone-statistics. You can use rndc stats with these defined to dump statistics to the file you define with the statistics-file statement. -Vinny From: bind-users-bounces+vinny_abello=dell@lists.isc.org [mailto:bind-users-bounces+vinny_abello=dell@lists.isc.org] On Behalf Of hugo hugoo Sent: Thursday, November 03, 2011 6:06 PM To: bind-users@lists.isc.org Subject: bind9 statistics Hello, I have the following problem; In bind8, I can find statistics every hour in the log file (see here below). But in BIND9 I do not find the same statistics in the log file. Is it possible to have it? Oct 31 07:11:37 dnszone001 named[19854]: NSTATS 1320041497 1301566457 TYPE0=50862 A=1764510765 NS=24977921 CNAME=5164425 SOA=8419048 MG=1 MR=1000 NULL=1 WKS=43 PTR=121163683 HINFO=16119 MINFO=3 MX=497037649 TXT=46163614 RP=3 X25=7 ISDN=2 RT=1 SIG=1 KEY=9 PX=24 =450246677 LOC=117 NXT=1 SRV=14855440 NAPTR=42769 A6=14181975 SINK=1 TYPE43=32907 TYPE46=3100 TYPE47=2864 TYPE48=85413 TYPE51=676 TYPE55=8 TYPE69=1 TYPE72=1 TYPE99=14892632 TKEY=85936 IXFR=2583 AXFR=301179 MAILB=7 ANY=37471162 Thanks in advance for your help. Hugo, ___ 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
bind9 statistics
Hello, I have the following problem; In bind8, I can find statistics every hour in the log file (see here below). But in BIND9 I do not find the same statistics in the log file. Is it possible to have it? Oct 31 07:11:37 dnszone001 named[19854]: NSTATS 1320041497 1301566457 TYPE0=50862 A=1764510765 NS=24977921 CNAME=5164425 SOA=8419048 MG=1 MR=1000 NULL=1 WKS=43 PTR=121163683 HINFO=16119 MINFO=3 MX=497037649 TXT=46163614 RP=3 X25=7 ISDN=2 RT=1 SIG=1 KEY=9 PX=24 =450246677 LOC=117 NXT=1 SRV=14855440 NAPTR=42769 A6=14181975 SINK=1 TYPE43=32907 TYPE46=3100 TYPE47=2864 TYPE48=85413 TYPE51=676 TYPE55=8 TYPE69=1 TYPE72=1 TYPE99=14892632 TKEY=85936 IXFR=2583 AXFR=301179 MAILB=7 ANY=37471162 Thanks in advance for your help. Hugo, ___ 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