pw diag log shadow
pw diag log shadow command shadows the log file to create another log file with more number of backups and large file size without having to restart the BMC TrueSight Infrastructure Management Server to capture the logs.
The log files are located either at the installationDirectory\pw\pronto\logs or installationDirectory\pw\pronto\logs\debug directory. The shadow log files are created in the same directory as the log files they shadow.
To create shadow log files
For log files that are present in the installationDirectory\pw\pronto\logs directory:
pw diag log shadow <file name> <maximum size> <number of backups>
For log files that are present in the installationDirectory\pw\pronto\logs\debug directory:
pw diag log shadow debug\<file name> <maximum size> <number of backups>
<file name>—Log file name
<maximum size>—The maximum size in megabytes (MB) for each log file
<number of backups>—The number of backup log files
To create a shadow log file for cellservervice_jserver.log located in the installationDirectory\pw\pronto\logs directory, run the following command:
pw diag log shadow cellservervice_jserver 20 5
This creates a shadow log file, s_cellservervice_jserver that runs in parallel to the existing cellservervice_jserver log file with maximum file size of 20 MB and number of backups 5.
To create a shadow log file for MessageServiceJS.log located in the installationDirectory\pw\pronto\logs\debug directory, run the following command:
pw diag log shadow debug\MessageServiceJS 20 5
This creates a shadow log file, s_MessageServiceJS that runs in parallel to the existing MessageServiceJS log file with maximum file size of 20 MB and number of backups 5.
If separate shadow log files for some sub-processes are not created, check the common debug log file for that process. For example, jserver.log for the jserver process.