Skip to Content
author's profile photo Former Member
Former Member

Recent log files

hi all,

in /usr/sap/<SID>/<instanceno>/j2ee/cluster/server0/log directory, i can find some 20 default.trc files. please let me know how to find which default.trc file has latest log written?? should we check all the 20 files??

many thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Dec 08, 2009 at 03:01 PM

    Hi,

    The trace files are written in rotation (from 0 to 19, then 0 is archived and a new 0 is written, then 1...).

    The latest log you can very easy determine by checking the date of the log.

    The logviewer (in VisualAdmin or the standalone logviewer, or in NWA) processes the traces itself and shows the latest automatically...

    Hope it helps

    Detlev

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2009 at 03:02 PM

    Hi,

    Check the timestamp on the files and pickup the file that was last modified. That will be your latest default trace file.

    Once the file has written the 20th file it starts overwriting the first file again and the cycle continues.

    Cheers!!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2009 at 04:52 PM

    Hi,

    You can use check log using portal also:

    http://<HOSTNAME>:<PORT NO>/irj/servlet/prt/portal/prtroot/com.sap.portal.runtime.admin.logviewer.default

    Check for the least size default trace. That would be the latest one.

    Regards,

    Niraj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2009 at 03:01 PM

    Dear MasterSAP,

    You need to see the last modified of the defaulttrace_*.trc, to see that use the comand ls -ltr it order the files by modification.

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2009 at 07:19 AM

    Thanks all for your quick replies 😊

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.