Extracting stats from BIND XML stats file : issues
blrmaani at gmail.com
Wed Jan 13 19:38:49 UTC 2016
On Wednesday, January 13, 2016 at 11:34:16 AM UTC-8, blrmaani wrote:
> I am trying to get Ipv4 query rate for our DNS server. I am taking 2 snapshots with a delay of 60 seconds between these snapshots.
> curl <dns-server>:<port> > /tmp/snapshot1.xml
> sleep 60
> curl <dns-server>:<port> > /tmp/snapshot2.xml
> I am calculating queryrate as below
> query_rate = (Queryv4_value2 - Queryv4_value1) / (current_time2 - current_time1)
> where Queryv4 values are the values extracted from XML file and current_time are the values from XML files ( and I am converting this to epoch to get number of seconds between these snapshots which is typically 60 seconds)
> Here is the issue:
> I am sending approx 200 'A' queries to the DNS server and my above calculation is showing a value of 2 queries-per-second.
> What am I doing wrong?
Sorry, missed some references during earlier post:
The time extracted from XML file is as below:
The Queryv4 from XML looks as below:
More information about the bind-users