<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE lire:report-spec PUBLIC
  "-//LogReport.ORG//DTD Lire Report Specification Markup Language V2.0//EN"
  "http://www.logreport.org/LRSML/2.0/lrsml.dtd">
<lire:report-spec xmlns:lire="http://www.logreport.org/LRSML/"
 superservice="dns" id="top-clients-detailed-report">

 <lire:title>Top Requesting Hosts Report</lire:title>
 <lire:description>
  <para>This report lists the requesting hosts with the most requests
   and it displays more detailed information on those requests: it
   shows the breakdown of requested names and request types.
  </para>
 </lire:description>

 <lire:param-spec>
  <lire:param name="hosts_to_show" type="int" default="10">
   <lire:description>
    <para>This parameter controls the number of hosts to
     display in the report.
    </para>
   </lire:description>
  </lire:param>

  <lire:param name="names_to_show" type="int" default="5">
   <lire:description>
    <para>This parameter controls the number of requested names to
     display by host in the report.
    </para>
   </lire:description>
  </lire:param>
 </lire:param-spec>

 <lire:display-spec>
  <lire:title>Number of Lookups by Hosts, Top $hosts_to_show (Detailed Report)</lire:title>
 </lire:display-spec>

 <lire:report-calc-spec>
  <lire:group sort="-name_total" limit="$hosts_to_show">
   <lire:field name="requesting_host" label="Client"/>

   <lire:group sort="-name_total" limit="$names_to_show">
    <lire:field name="request" label="Requested Name"/>
    <lire:count name="name_total" label="Requests"/>
   </lire:group>

   <lire:group sort="-resolver_total">
    <lire:field name="type" label="Request's Type"/>

    <lire:group>
     <lire:field name="resolver" label="Resolver"/>
     <lire:count name="resolver_total" label="Requests"/>
    </lire:group>
    
   </lire:group>
  </lire:group>
 </lire:report-calc-spec>

</lire:report-spec>
