limit problem in lire:group while creating my report
Joost van Baal
joostvb at logreport.org
Thu Oct 27 15:21:18 CEST 2005
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?
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.
> Thanks for this tool... it is very usefull and very modular !
That's good to hear :)
Thanks,
Bye, Joost
--
. . http://logreport.com/
| '.| /^LogReport$/
| Lire http://logreport.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://lists.logreport.org/pipermail/questions/attachments/20051027/d78d01a9/attachment.bin
More information about the Questions
mailing list