This section assumes you have the Veduta™ installation package. If not, please visit the Veduta homepage for a trial or purchase copy.
If you're having problems with the example below, see here or contact us with any queries.
.jar file. You will require a suitable Java virtual machine to be able to run Veduta. These are free and available from Sun Microsystems here. You will require version 5.0 or above.
Change directory to the directory that Veduta has installed itself in. On Windows, this will default to:
Using standard logging (-Djava.util.logging.config.file={filename} to override)
Veduta 1.1 TRIAL VERSION EXPIRES Sat May 05 00:00:00 BST 2007
05-Apr-2007 20:35:42 INFO: Checking Resource aliases
05-Apr-2007 20:35:43 INFO: Version Jetty/5.1.12
Veduta Servlet starting up
Configs loaded from ./
Running with veduta config = examples/gettingstarted/veduta.xml
report config = examples/gettingstarted/report.xml
Veduta 1.1 TRIAL VERSION EXPIRES Sat May 05 00:00:00 BST 2007
05-Apr-2007 20:35:44 WARNING: db/gettingstarted.ser memory database specified but not present
05-Apr-2007 20:35:44 INFO: Running as a server : rmi://localhost:3055/VedutaServer
05-Apr-2007 20:35:44 INFO: Started org.mortbay.jetty.servlet.ServletHandler@1c695a6
05-Apr-2007 20:35:44 INFO: Started ServletHttpContext[/veduta,/veduta]
05-Apr-2007 20:35:44 INFO: Started SocketListener on 127.0.0.1:8080
05-Apr-2007 20:35:44 INFO: Started org.mortbay.jetty.Server@13e205f
Now we need to start a Veduta client. The Veduta clients read the log files and send this info to the server, where it is recorded and displayed.
In a separate terminal on the same machine, change directory to the Veduta installation directory, and run:
Using standard logging (-Djava.util.logging.config.file={filename} to override)
Veduta 1.1 TRIAL VERSION EXPIRES Sat May 05 00:00:00 BST 2007
05-Apr-2007 21:59:42 INFO: Running as a client. Will connect to rmi://localhost:3055/VedutaServer
05-Apr-2007 21:59:42 INFO: Connecting to rmi://localhost:3055/VedutaServer
05-Apr-2007 21:59:42 INFO: Reading examples/gettingstarted/logs/example.log
05-Apr-2007 21:59:42 INFO: file:.../examples/gettingstarted/logs/example.log read using simple parsing. Discarding initial results
05-Apr-2007 21:59:42 INFO: Connected to rmi://localhost:3055/VedutaServer
05-Apr-2007 21:59:42 INFO: Transmission throttle set to 0s
Locate the configured log file examples\gettingstarted\logs\example.log and open it in an editor. Add new lines to the bottom of the log file and save after every few lines (simulating a moving log file). Veduta will receive this information and periodically redisplay the reports, showing the log information appearing at the appropriate time. The more log lines you write, the more information Veduta will display. Veduta is configured to add timestamps automatically.
Take a copy of the examples\gettingstarted directory, and modify the configurations in this. You will need to repoint both the clients and server to this directory. e.g.
<consumer>
<file>
<name>Logfile on ${host}</name>
<filename>insert your logfile name here</filename>
<parser type="simple" timestamps="true"/>
</file>
</consumer>
The logfile definition can accept wildcards (useful if your logfiles roll over or are dated).
See the Reading Log Files configuration guide for more information. If you're running clients across multiple hosts, then copy this configuration to each client host that requires it. You will need to modify the {your dir}\veduta.xml to tell each client where the server is running.
<system>
...
<network>
...
<server>insert your server name here</server>
</network>
</system>
Pattern matching is configured using the following sections.
<analysis type="patterns" patternValues="pattern colour map">
<pattern score="1">.*warning.*</pattern>
<pattern score="2">.*error.*</pattern>
</analysis>
<values name="pattern colour map">
<value equals="1" colour="#ff6600"/> <!-- orange -->
<value equals="2" colour="red"/>
</values>
Making the above changes means you can quickly configure Veduta to your particular system. For further information, take a look at the Configuration Basics documentation.
Briefly, a web browser and a Java 5 installation. See here for further information.
The web pages should display by default on port 8080. To change this port, see here.
The standard URL that the reports appear on is http://{your host name}:8080/
The Veduta client and server talk on a commonly configured port. To change this, edit the file examples\gettingstarted\veduta.xml and change the configured network port.
<system>
...
<network>
...
<port>1098</port>
</network>
</system>
Very easily! Simply copy your installation onto another machine where you want your client to run. You then need to tell the client where to find the server. To do this, edit the file examples\gettingstarted\veduta.xml on the client machine and change the configured network server name to that of your server.
<system>
...
<network>
...
<server>server hostname</server>
</network>
</system>