limit problem in lire:group while creating my report
Emeric Laroche
emeric.laroche at gmail.com
Thu Oct 27 15:45:51 CEST 2005
2005/10/27, Joost van Baal <joostvb at logreport.org>:
> Hi Emeric,
>
> Op do 27 okt 2005 om 02:20:13 +0200 schreef Emeric Laroche:
> >
> > I'm creating a report for syslog messages.
> > some problems can appear from different hosts and I want to see from
> > wich host this message appear so I want to have something like :
> > Level
> > Message
> > Host
> >
> > so this is part of my "host-by-top-10-messages-by-level.xml" file :
> > <lire:report-calc-spec>
> > <lire:group>
> > <lire:field name="level"/>
> > <lire:group sort="-msg_count" limit="10">
> > <lire:field name="message"/>
> > <lire:group >
> > <lire:field name="hostname"/>
> > <lire:count name="msg_count" label="message"/>
> > </lire:group>
> > </lire:group>
> > </lire:group>
> > </lire:report-calc-spec>
> >
>
> Wild guess:
>
> <lire:group sort="-msg_count">
> <lire:field name="message"/>
> <lire:group sort="-msg_count" limit="10">
> <lire:field name="hostname"/>
> <lire:count name="msg_count" label="message"/>
> </lire:group>
> </lire:group>
>
> Could you try that?
Well.. truncate the number of hostname for each messages (I have 12
message in my test log file and 13 hosts, the 12 messages appear but
just 10 hosts... and I want 10 messages and 13 hosts)
> BTW, are you willing to share this with us under a free license like the
> GPL? If so, we can ship your host-by-top-10-messages-by-level.xml file
> with next Lire release.
Sure it's not a problem !
I'll send you the template and reports I'm creating.
If you want my test file I can give it...
--
Emeric Laroche
--
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
questions-request at logreport.org
More information about the Questions
mailing list