Showlog Script
The service log is a special log written in a binary format. We cannot view the log directly using a text editor. You should never directly edit the service log, as doing so corrupts the log. To move the service log from one server to another, use a mechanism like FTP, which supports binary file transfer.
We can view the service log by using the showlog script to convert the contents of the service log to a text format that one can then write to a file or dump to the command shell window.
To run the showlog script:
- Open a shell window on the machine where the service log resides.
- Change the directory to install_directory/bin where install_directory is the fully qualified path where the WAS product is installed.
- Run the showlog script:
On Windows systems, the script is named
showlog.batOn UNIX systems, the script is named
showlog
Displaying user instructions
Run the showlog script with no parameters to display usage instructions.
On Windows systems, the script is named
showlog.batOn UNIX systems, the script is named
showlog
Displaying
the service log contents to the shell windowOn Windows and UNIX systems, use the invocation
showlog service_log_filenameIf the service log is not in the default location, fully qualify the service_log_filename
Format and write the service log contents
to a fileUse the invocation
showlog service_log_filename output_filenameIf the service log is not in the default location, fully qualify the service_log_filename