writing report specifications: field name=? (was: Re: Field definition)

Joost van Baal joostvb at logreport.org
Wed Jan 30 12:40:32 CET 2002


Hi Cedric Gross,

On Wed, Jan 30, 2002 at 12:09:52PM +0100, gross, cedric wrote:
> I don't reach to find where are field name definition for logreport.
> Is there somewhere a doc with all field available ?

The names of fields are defined per superservice, in files like
service/email/email.xml and service/ftp/ftp.xml (these are the
locations in our CVS).

> For example is the <Lire:Field name=period>  valid ?
> 
> And last question, why this report definition produce nothing ? (I have
> a beautiful log file for it)
> 
> <?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">

I assume you are writing a report for the ftp superservice.  Valid
fieldnames for this superservice are "time", "transfer_time",
"remote_host", "file_size", "filename", "transfer_type",
"special_action_flag", "direction", "access_mode", "username",
"service_name", "auth_method", "auth_user_id".

>  <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>

I don't really understand what you would like to get displayed in your
report.  Changing 'period' to 'transfer_time' might give you what you
want.  I hope this helps you; if not, please let me know.

BTW, I am very pleased to see you working on writing your own report
specifications.  Once your specification is stable, we would be very
happy to distribute it with our next Lire release.  Please let us know
wether you're interested in this.

O, and, please consider subscribing to development at logreport.org; that's
the list most suited for this and similar discussions.

Bye,

Joost

-- 
Joost van Baal              . .           http://www.logreport.org/
                           .   .
/^LogReport$/               . .               joostvb at logreport.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.logreport.org/pipermail/questions/attachments/20020130/12e1c38d/attachment.bin 


More information about the Questions mailing list