All the errors are recorded in the Stdlog (i,e Standard Log), how to understand / Analyse these log files ?
There are lot many log files with STD(Standard) get created, how to interpret them.
Release: 11.2 and higher
Component: CA Service Desk Manager
The main Service Desk log file is the stdlog. It is usually found in the NX_ROOT\log directory, although this location can be changed by modifying the NX_LOG environment in the NX.env file. There are up to 10 stdlog files, stdlog.0 through to stdlog.9. These files are written to in a round-robin method, When stdlog.0 is full, stdlog.1 is written, then stdlog.2 and so on to stdlog.9. When stdlog.9 is full, stdlog.0 is erased and started again. This limits the space taken up by the stdlogs, while maintaining a large amount of historical information.
The layout of the lines in the stdlog are like this:
Date Time Node Process PID Level File Line Message 11/14 12:12:47.58 SDM-SERVER web:local 3572 SIGNIFICANT session.c 5272 Session 018F1288 created; session count 2
The stdlog files can be controlled in two ways:
pdm_logfile - This command enables you to change the maximum size that each stdlog file can reach before Service Desk starts writing to the next stdlog file.
pdm_logfile -L - This will list the current setting for the file size.
pdm_logfile -b <N> - This will set the file size of the stdlog files to <N> bytes. The default value is 3000000 Bytes. Please check that you have suitable disk space before changing this value.
pdm_logstat - This command enables you to change the runtime logging level of the stdlog files in several different ways.
Increasing the logging level in the stdlog will create an additional overhead on the Service Desk system, as it has more work to do. The size of this overhead will depend on the logging level which is set. You may want to check the impact that increasing the logging level has on your system before setting this for any significant length of time.
If you execute the command "pdm_logstat -h", you will see the options which you can use:
pdm_logstat -F -- to list open file table pdm_logstat -L -- to list level table pdm_logstat -p pid -- to remove level by pid pdm_logstat -n name -- to remove level by procname pdm_logstat -f file -- to remove level by source file pdm_logstat -p pid level -- to set level by pid pdm_logstat -n name level -- to set level by procname pdm_logstat -f file level -- to set level by source file pdm_logstat -a level -- to set a default level pdm_logstat -v -- to get extra info
(For details of the numeric values you can use, please refer to KB Article 27510)
You can control logging using 4 different criteria:
Globally - using the "-a" parameter. This will set the specified logging level for all Service Desk processes.
Process - using the "-p" parameter. This will set the specified logging level for the process with the PID specifies (e.g. pdm_logstat -p 3428 250 increases logging for the process whose PID is 3428.)
File - using the "-f" parameter. This will set the specified logging level for all lines in the stdlog which have this filename in the line.
Name - using the "-n" parameter. This will set the specified logging level for all processes with this process name.
Any combination of these can be used together, should the situation call for logging of multiple processes/filenames etc.