problem with lr_log2report and --output html: /bin/tar: report: Cannot stat: No such file or directory (was: Re: Can´t get html report)
Joost van Baal
joostvb at logreport.org
Wed Oct 4 12:11:28 CEST 2006
Hi,
[Cc-ing Mikael Kermorgant, since he reported this bug too.]
Op di 3 okt 2006 om 06:26:36 +0200 schreef Eva Gomez Hidalgo:
> Hello
> I have run:
> tai64nfrac </home/qmail-send/current | \
> lr_log2report qmail --output html > /tmp/report.tar
>
> And there is an empty report.rar.
>
> However, if I run -- output xml it works all right. I suposse there is
> something missing for html reports ¿is this posible?
You've found a bug. This one is present in the lire 2.0.2-1 Debian
package (and in the current Lire CVS too).
lr_log2report indeed gives
Formatting report as html in -...
/bin/tar: report: Cannot stat: No such file or directory
/bin/tar: Error exit delayed from previous errors
when trying to read from stdin while generating html output.
Here's a workaround:
joostvb at gelfand:~% tai64nfrac < /var/log/qmail-send/current > /tmp/log
joostvb at gelfand:~% lr_log2report qmail --output html /tmp/log /tmp/report
[...]
Formatting report as html in /tmp/report...
joostvb at gelfand:~% ls /tmp/report/
deliveries-by-period.0.png section-1.html toc.png
deliveries-by-period.1.png section-2.html top-from-domain.0.png
email-email.html section-3.html top-status-by-domain.0.png
email.html section-4.html top-to-domain.0.png
index.html section-5.html top-volume-from-domain.0.png
lire-html.css section-6.html top-volume-to-domain.0.png
lire.png section-7.html volume-by-period.0.png
next.png section-8.html volume-by-period.1.png
prev.png summary.0.png
If you're on a GNU/Linux system, or on another system which understands
/dev/stdin, you can do it all in one step:
joostvb at gelfand:~% tai64nfrac < /var/log/qmail-send/current | \
lr_log2report qmail --output html /dev/stdin /tmp/report
Parsing log file using qmail DLF Converter...
Extracted 150 DLF records on 1079 lines.
Encountered 0 errors and ignored 0 lines.
Running analysers...
Generating XML report...
Formatting report as html in /tmp/report...
joostvb at gelfand:~% ls /tmp/report
deliveries-by-period.0.png section-1.html toc.png
deliveries-by-period.1.png section-2.html top-from-domain.0.png
email-email.html section-3.html top-status-by-domain.0.png
email.html section-4.html top-to-domain.0.png
index.html section-5.html top-volume-from-domain.0.png
lire-html.css section-6.html top-volume-to-domain.0.png
lire.png section-7.html volume-by-period.0.png
next.png section-8.html volume-by-period.1.png
prev.png summary.0.png
For now, I've documented the bug in the lr_log2report manpage.
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/20061004/d1bbd400/attachment.bin
More information about the Questions
mailing list