Skip to content

OpeningLogs

Sven Nissel edited this page Apr 14, 2022 · 6 revisions

OtrosLogViewer can read log files from local disks, remote file systems (supported file systems) and over a socket.

Open one logfile

If you start otros you can open a log file on welcome screen or by File menu. Open menu on welcome screen

With the file chooser you can browse to your log files, have a look on the preview, filter files and store favorites. If the file is parsable for otros your see the info "Can parse ".

Merge more than one logfile together

With the "Merge log files" menu you can choose more than one log file to open. The logfiles will be sorted by time and will be displayed together.

Empty merge files dialog

If you selected the files, you can change parser or filter configuration for every file.

merge log files

Open compressed archives

If one log file is compressed in a zip/gzip/tar/bzip2 archive you can open the file with the "open" button or per double click. If you have compressed more than one log files or mixed with other files you can explore the archive by putting the type at the beginning of the location text field. img.png

File type Example url
zip zip:file:///C:/moreThanONeLogFile.zip!/
tar tar:file:///C:/moreThanONeLogFile.tar!/
bzip2 bzip2:file:///C:/moreThanONeLogFile.bz2!/
gzip gzip:file:///C:/moreThanONeLogFile.gz!/
See supported file systems

Open remote files

To open files for example one a remote server with ssh/sftp you must type the protocol into the location text field. merge log files

Example of more supported protocols.

Protocol Example url
ssh/sftp sftp://server.com
FTP ftp://server.com
Samba smb://server.com
HTTP/HTTPS https://server.com
See supported file systems

Also supported is to open files from http/https urls per drag and drop.

Simple private key

If you select a ssh key in the open dialog of a sftp location the password field is used for the private key.

Selecting remote SSH server with private key

Pageant

On Windows system you can use pageant to store and unlock private keys. If pageant is started with private keys they will be loaded automatically

Open logfiles from socket

OtrosLogViewer is able to receive log events on socket. Port and log format can be choosen. Many sockets with different log format can be opened, all events will be imported into one view.

To enable logs listening, you need to:

  1. Configure you application to send log events on socket (java.util.logging.SocketHandler or SocketHandler). Log events have to be formatted as plain text (not seriaized java objects)
  2. Select the Start socket listener option in the Tools menu in OtrosLogViewer ,
  3. Choose log format and port number,
  4. Start your application with the predefined log configuration.

Open socket dialog

Clone this wiki locally