Log Files

When recording a session, SonarLink will create a log file with the extension .svlog. Long recording sessions will be automatically split across multiple files to limit the size of each file.

As of 1.14.20-beta, log files will be stored on disk with the extension .svlz instead. These files have the same content as a .svlog file but are compressed with gzip to use less space on disk. SonarView can open these files directly and can convert a compressed file as uncompressed or vice-versa (see Exporting Log Files).

You can turn svlog compression on or off via the Session Configurations dialog.

Working with Log Files

The following commands are intended for Linux / MacOS machines, or Windows machines running WSL.

Mass File Compression

If you have a lot of uncompressed .svlog files, it can be a bit tedious to drag them all into SonarView and re-export as .svlz, as you will then need to move them from your Downloads folder back to the original location. To get around this you can use some simple command line functions. To convert all .svlog in the current directory to .svlz:

Or to do the same operation recursively:

Combining Log Files

The following commands are only expected to work with similar SonarView log files (same devices, same area).

A directory of .svlog files can be combined into a single file with:

If the files are compressed (svlz) then the command would be:

This can take some time as gzip will process the files serially. You can accelerate this substantially by installing pigzarrow-up-right. Using pigz, you can combine a directory of .svlz files into a single file with:

circle-info

SonarView 1.14.37 or earlier will fail to open .svlz files that decompress to >2GB. This is fixed in SonarView 1.14.39.

Last updated