lr_log2report issued several warning messages and created a text report with no subreports
Robert_G_Kennington at notes.tcs.treas.gov
Robert_G_Kennington at notes.tcs.treas.gov
Thu Aug 14 19:15:14 CEST 2003
On Thur, 08/14/2003 12:06 PM <flacoste at logreport.org> wrote:
Hi Francis,
> On Mon, 2003-08-11, Robert_G_Kennington at notes.tcs.treas.gov
> wrote:
>
> > isbld2br> lr_run lr_log2report -c ~/.lire/config/mailhub-5.xml \
> > sendmail < ~/logs/mailhub-5.syslog.200306.gz > \
> > ~/.lire/reports/mailhub-5.txt
>
> The problem is that the file you are providing as argument to
> the -c switch isn't what is expected at all by Lire.
That did it! I just produced my first Lire report.
> The -c option expects a "Report Configuration File". This is
> line-oriented text files which lists the section of the report, the
> tables that will be included in each section and the parameters
> to use when generating the reports.
>
> This format of this file is documented in "Chapter 5:
> Customizing Lire's Reports".
>
> The file you are using as argument is a XML file containing Lire
> configuration values. You don't have to use a switch to "enable"
> the configuration. All files located in $HOME/.lire/config/ will be
> used as part of the configuration.
This is somewhat counter intuitive to me. My first impression was that I
needed to configure the system for each type of report I wish to produce.
Eventually, I'd like to produce periodic reports for each bureau/group in
the Department of the Treasury. For example:
BureauA_daily_sendmail_yyyymmdd.html
BureauA_weekly_sendmail_yyymmdd.html
BureauA_monthly_sendmail_yyyymmdd.html
BureauB_daily_sendmail_yyyymmdd.html
BureauB_weekly_sendmail_yyymmdd.html
BureauB_monthly_sendmail_yyyymmdd.html
BureauA_daily_dirx_yyyymmdd.html
BureauA_weekly_dirx_yyymmdd.html
BureauA_monthly_dirx_yyyymmdd.html
GroupA_daily_dirx_yyyymmdd.html
GroupA_weekly_dirx_yyymmdd.html
GroupA_monthly_dirx_yyyymmdd.html
This would require specifying a filter configuration file mapping address
spaces to bureaus/groups. For example:
BureauA 145.*
BureauB 155.7.6.*
BureauB 155.8.*
GroupA 125.2.1.5
GroupA 123.4.*
Is such a thing possible with Lire or envisioned for a future release?
> If you want to use special configuration depending on the job you
> are running, simply change the parameters in a "Job Context" in
> lr_config.
I guess I need to read some more.
> The correct configuration will be use if the report is generated
> automatically using lr_cron. Otherwise, you can export the
> LR_JOB_ID environment variable to select the correct
> configuration.
You're a life saver.
> Kind regards, Francis J. Lacoste
Many thanks and gesticulations, Bob K.
--
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