limit problem in lire:group while creating my report

Emeric Laroche emeric.laroche at gmail.com
Thu Oct 27 14:20:13 CEST 2005


Hi

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>

The problem is :
if I have more than 10 messages in one level, this level won't appear
in the repport... whereas I want the first 10 messages

### part of the template calling this report ###

        <param name="section">
          <param name="specs">
            <param name="syslog:host-by-top-messages-by-level">
              <param name="id">host-by-top-messages-by-level.0</param>
            </param>
          </param>
          <param name="title">test</param>
          <param name="superservice">syslog</param>
        </param>

### end ###

$> lr_log2report --version
lr_log2report as shipped with Lire version 2.0.1

I post here but I don't know if it's a bug or if it's my fault...

Thanks for this tool... it is very usefull and very modular !
--
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