In WCS, all the log details will be generated in SystemOut.log and trace.log files, unless the logging feature is customized. It will be difficult to go through the logs and findout the list of unique exceptions in it, especially in a production environment which will be running in unix/aix servers.
The following unix commands can be used to findout unique exceptions in logs
Getting all the unique exception:
The following unix commands can be used to findout unique exceptions in logs
Getting all the unique exception:
Direct your putty output
to a text file and execute the following grep. The text file will have all the
exception.
grep -io "[a-zA-Z.0-9]*exception" SystemOut.log
| sort -i | uniq
Instead of grepping
exceptions alone we grep the entire lines. This will have little more
details.
Direct your putty output
to a text file and execute the following grep. The text file will have all the
exception with whole line from exception trace.
grep -i 'exception' SystemOut.log | sort -u
| uniq –u
No comments:
Post a Comment