Show TOC

Procedure documentationLog Viewing with the SAP MC Locate this document in the navigation structure

 

The trace and log messages contain important information about system operation. It is helpful to check and analyze them if you experience errors or undesired behavior.

Using the SAP MC log viewing functions you can:

  • View all system log and trace files

  • View developer trace files

  • Create stack traces for the processes

Types of Log and Trace Files
  • Instance Developer Trace and Log Files Contain information about the startup process. You can check these files in case of errors or undesired behavior during the startup process. By default, the data from the last three restarts is kept.

    • The developer trace files of the Java instance are located in the directory \usr\sap\<SID>\<instance name>\work, where <SID> is the system ID (for example, CE1) and <instance name> is the instance name of the Java instance (for example, J03).

    • The developer trace files of the central services instance are located in the directories usr\sap\<SID>\<instance name>\work , where <SID> is the system ID (for example, CE1) and <instance name> is the instance name of the central services instance (for example, SCS02).

  • AS Java logs The log and trace files generated by the AS Java process(es) and the applications running on top of AS Java are stored in the usr\sap\<SID>\<instance name>\j2ee\cluster\server<n>\log directory.

Procedure

Viewing Developer Trace Files
  • To view the developer trace file of a process, select the relevant process and from the context menu, choose ShowDeveloper Trace.

  • If the information in the developer trace is insufficient or too detailed, choose Increment/Decrement Trace Level to adjust the launcher trace level to the desired level.

Dumping the Java Stack Trace
  • To dump the server processes Java stack trace, select the relevant server process, and choose Dump Stack from the context menu.

  • To view the dump stack trace, choose Show Developer Trace (see above).

    The resulting Java server stack trace is stored in the dev_server<n> file in the usr\sap\<SID>\<instance name>\work directory.

Log Viewing from the SAP MC
  1. To view all log and trace files of an instance, select the Log Files node from the tree structure of the relevant instance.

  2. In the navigation pane, select the file you want to view and, from the context menu, choose Show Log File.

    A dialog box appears, where you can browse the log messages and view their detailed description.

    Note Note

    Alternatively, you can view all developer trace and log files of an instance by selecting the relevant instance, and choosing List Developer Traces from the context menu.

    End of the note.
    • To view the log file of the service, select an instance and choose Show Trace File from the context menu.

    • To view log records filtered by severity, time, and entries, select an instance and choose Analyze Log Files.