December 08, 2016

How to find the siebel log files using command line?

While working on Siebel projects you must have come across numerous occasions where you need to find specific log with specific error or any one user name or any one xml value which is causing trouble.



Usually this type of task involve tedious task of opening all the log files during the time duration one by one. 


Perhaps there is an easier way possible using the command line. One can use grep command in linux and find command in windows to easily find the name of the log while which contains specific string.

These commands can search the entire siebel server log directory and give you specific file names which contain specific string.

With following command I can find the log file for specific user in entire directory:

find "USER_NAME" C:\Siebel\15.0.0.0.0\ses\siebsrvr\log\*.log
With following command I can find the file with specific Error:
find "SBL-BPR-00162" C:\Siebel\15.0.0.0.0\ses\siebsrvr\log\*.log
And finally with this command I can find the EAI Object Manager Log which got XML Converter error.

find "SBL-EAI-04112" C:\Siebel\15.0.0.0.0\ses\siebsrvr\log\EAI*.log /c



Isnt that simple? Happy Searching :)

3 comments :

  1. What is the unix equivalent for above find commands

    ReplyDelete
  2. What is the unix equivalent for above find commands

    ReplyDelete
  3. Hi kusum, i guess in linux it is much more easier and faster using grep command, please see http://stackoverflow.com/questions/16956810/how-to-find-all-files-containing-specific-text-on-linux
    This should help. Jim

    ReplyDelete