Showlog Script
The service log is a special log written in a binary format. You cannot view the log directly using a text editor. You should never directly edit the service log, as doing so will corrupt the log. To move the service log from one machine to another, use a mechanism like FTP, which supports binary file transfer.
You can view the service log by using the Showlog script to convert the contents of the service log to a text format that you 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 $WAS_HOMEectory/bin where $WAS_HOMEectory is the fully qualified path where the WAS product is installed.
- Run the showlog script...
On Windows systems, the script is named showlog.bat. On UNIX systems, the script is named showlog.sh.
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.sh
Displaying the service log contents to the shell window
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 file
Use the invocation
showlog service_log_filename output_filenameIf the service log is not in the default location, fully qualify the service_log_filename
See Also
Configuring WAS for z/OS variables