timegroup PB

gross, cedric C.Gross at HAYWARD.FR
Wed Jan 30 16:38:55 CET 2002


I have setted up this report for ftp superservice (bup.xml):

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE lire:report-spec PUBLIC
"-//LogReport.ORG//DTD Lire Report Specification Markup Language
V1.0//EN"
"http://www.logreport.org/LRSML/1.0/lrsml.dtd">
<lire:report-spec xmlns:lire="http://www.logreport.org/LRSML/"
superservice="ftp" id="bytes-by-user-by-period">
<lire:title>Bytes by User by Period FTP Report</lire:title>
<lire:description>
<para>This report shows the bytes transferred by user by period.
</para>
</lire:description>
<lire:param-spec>
<lire:param name="period" type="duration" default="1d">
<lire:description>
<para>This parameter controls the time period which is used to
aggregate the records.
</para>
</lire:description>
</lire:param>
<lire:param name="users_to_show" type="int" default="10">
<lire:description>
<para>This parameter controls the number of users to
display during each users.
</para>
</lire:description>
</lire:param>
</lire:param-spec>
<lire:display-spec>
<lire:title>Total Bytes Transferred by User by $period Period, Top
$users_to_show users</lire:title>
</lire:display-spec>
<lire:report-calc-spec>
  <lire:group name="usr" limit="$users_to_show" sort="username">
    <lire:field name="username"/>
    <lire:count name="Nombre" field="username"/>
      <lire:timegroup period="1d">
         <lire:group name="dir" > 
           <lire:field name="direction"/>
           <lire:sum name="bytes_total" field="file_size"/>
         </lire:group>
       </lire:timegroup>
    </lire:group>
</lire:report-calc-spec>
</lire:report-spec>

When I run log2report I obtain that :
ftp all lr_tag-20020130163828-55255 lr_dlf2xml warning error in report:
error while parsing XML report specification bup: gro
up must only contains field, group, min, max, avg, sum or count
ftp all lr_tag-20020130163828-55255 lr_dlf2xml warning  at line 47

So,it's seems that tag <lire:group> cannot include <lire:timegroup> is
right ? 

If yes, Is it possible for you to change that ?

Cedric


-- 
To UNSUBSCRIBE, email to development-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
development-request at logreport.org



More information about the Development mailing list