html with graphs on Mandrake 8.1 (was: Re: help)

Joost van Baal joostvb at logreport.org
Tue Jan 29 15:46:38 CET 2002


Hello Christian,

On Tue, Jan 29, 2002 at 03:10:11PM +0100, Christian Martz wrote:
> 
> I am a old (42) french student and I am ill at ease in english writing.
> So, please forgive me.

Most of us are not ative English speakers.  I understand your message, no
problem :)

> I am very interested in your tool 'lire'.
> I downloaded the 17.10.2001 version 

You mean lire-20011017.tar.gz ?  Our latest stable version is
lire-20011205.1.tar.gz , available from http://logreport.org/pub/ , you
might want to try that one.

> and intalled it on a PC with linux
> (Mandrake 8.1)
> I try to create a htlm report with charts about an apache logfile.
> Here my command : lr_run lr_log2report -o html -i err1 www apache common
> < apache.file > tmp/rep.html

this will not give an html file on stdout, but a tar file.  Therefore
you'd better redirect stdout to e.g.  > tmp/report.tar, or pipe it
through tar -xf (see below.)

> In the config file 'defaults', I put keep=1 to keep the intermediate
> files.

That's not needed, this setting is only there to make debugging easier.

> In tmp/rep.html, I get the different parts (like www:number of request
> served by day) but no image.
> In tmp directory, I found a new directory lr_xml2html.589/report, and in
> this directory are the .png files.

I just did, on a Debian GNU/Linux system:

 joostvb at gelfand:/tmp/logreport% wget http://logreport.org/pub/archive/lire-20011017.tar.gz
 joostvb at gelfand:/tmp/logreport% tar zxf lire-20011017.tar.gz && \
  cd lire-20011017 && ./configure --prefix=/tmp/logreport && make && \
  make install
 joostvb at gelfand:~% PATH=/tmp/logreport/bin:$PATH
 joostvb at gelfand:/tmp/logreport% lr_run lr_log2report -o html -i \
  /tmp/error www apache combined < /var/log/apache/doc.mdcc.cx/combined.log | \
  tar -xf -
 joostvb at gelfand:/tmp/logreport% galeon report/index.html &

(In the README file, you're advised to run

 $ zcat /var/log/apache/combined.log.gz | \
  lr_run lr_log2report -o html -i /tmp/error www apache combined | \
  tar -xf -
 which will generate a report in html format is a subdirectory ./report/. )

This showed an html report with graphics in my webbrowser (I use galeon;
mozilla or netscape work equally well of course.)

> Where is my mistake ????

I think you should just point your browser to the index.html file.
Generating the actual png's seems to be ok on your machine.  I don't
think there is any problem.

> I will be very happy if you could help me.

I hope my explanation helps you.

Bye,

Joost

-- 
Joost van Baal              . .           http://www.logreport.org/
                           .   .
/^LogReport$/               . .               joostvb at logreport.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.logreport.org/pipermail/questions/attachments/20020129/92421d91/attachment.bin 


More information about the Questions mailing list