|
|||
Copyright (C) 1998-2005, Matti Tukiainen <ktmatu@nic.fi>. All rights reserved.
This file is part of Relax.
Relax is distributed with NO WARRANTY OF ANY KIND. No author or distributor accepts any responsibility for the consequences of using it, or for whether it serves any particular purpose or works at all, unless he or she says so in writing. Refer to the GNU General Public License (the "License") for full details.
% mkdir Relax
% unzip relax-x.xx.zip
% chmod 700 relax.pl
which perl
"
(or "whereis perl
") to find out
where your Perl program resides:
% which perl
/foo/bar/perl
Now you can use your favorite editor, like emacs or
pico, to make the modification. Or if you are a
hacker like person, with Perl:
% perl -pi.bak -e 's|#\!/usr/bin/perl|#\!/foo/bar/perl|g' relax.pl
% ./relax.pl -h
% relax.pl -h
% ./relax.pl -ra1 sample-log-1
% ./relax.pl -crelax.cfg -oreport.html sample-log-1
You can always run relax.pl as a Perl script
% perl relax.pl [options]
in which case steps 4 and 5 described above are unnecessary.
Please check the Installation and Configuration Service if this looks too complicated.
These instructions are for Relax and Windows 95. Windows 98, NT, NT 2000, XP and DOS installations are probably slightly different. Relax for Windows has separete instuctions.
C:\>mkdir Relax
C:\Relax>unzip relax-x.xx.zip
C:\Relax>perl relax.pl -h
C:\Relax>C:\Perl\perl relax.pl -h
C:\Relax>perl relax.pl -ra1 sample-log-1
C:\Relax>perl relax.pl -crelax.cfg -oreport.html
sample-log-1
Instead of unzip, you can also use some windows based programs, like PKZIP for Windows to extract files from a zip file. In this case you, can skip the first three steps.
If you want to analyze compressed log files (.gz and/or .bz2) there must be gzip and/or bzip2 programs installed somewhere on the path or in the directory where the Relax was installed.
The final step in installation process in to configure Relax to produce reports that suit your needs. This can be done with:
The plain text configuration files can be named freely and its possible to have many configuration files for different purposes. These files can even be chained. It's also possible to configure the bahavior of Relax by supplying both configuration file and command line switches at the same time.
The provided relax.cfg sample configuration file lists all items that can be configured. To make modifications to this file, open it with your favorite text editor. Windows users must use an editor that is capable of handling Unix style line end characters (SciTE and PFE are nice free tools for this purpose. If you ask SciTE to treat the file as Perl code, it becomes more readable because of syntax color highlighting.)
Use -c command line switch to employ those settings. E.g.
% ./relax.pl -crelax.cfg -omyreport.html mylogfiles*
If there is no command line on your platform, it's possible to load relax.cfg (or any other configuration file) by defining it in default.cfg.
Some of the most important things to configure are:
Please check the Installation and Configuration Service if this looks too complicated.
In many cases the configuration process is a lot easier if you understand the basis of Perl regular expressions. Please check these resources if you are a Perl regexp newbie:
Please check the Installation and Configuration Service if this looks too complicated.
To make most out of Relax and minimize the hassle, it is possible to use the Installation and Configuration Service. This service guarantees that Relax is correctly installed and configured.
Please check the separate Relax Upgrade Guide.
Relax: Just delete the directory or folder where you installed Relax. Relax creates no files of its own and doesn't modify (Windows) registry settings in any way.
Relax for Windows: Start -> Control Panel -> Add/Remove Programs.
Home | Software | Information | Etsin | Chinese | Christmas Calendars | Site Info |