- View all system log and trace files
- View developer trace files
- Create stack traces for the processes
Types of Log and Trace Files
- Startup and control framework logsContain information about the startup process. You can check these files if errors or undesired behavior occur during the startup process. By default, the data from the last three restarts is kept.
- The developer trace files and system output of all the executables belonging to an 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 (for example, JC00 or SCS01).
- AS Java logsThe 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, in the result view, select the relevant process.
- From the context menu, choose Show Developer Trace. The SAP MC displays detailed information in the log file view.
- Optional: If the information in the developer trace is insufficient or too detailed, choose Increase/Decrease trace level to adjust the trace level to the desired level of detail.The following are the possible trace levels:
- 0: No trace
- 1: Error trace
- 2: Complete process, short data trace
- 3: Complete process, complete data trace
By default, the trace level is set to 1. By choosing Increase/Decrease trace level, you move the trace level up/down by one level.
Special Logs and Traces
- To view the log file of the sapstartsrv service, select an instance, and from the context menu, choose Show Trace File.
- To view log records of all log and trace files filtered by time and severity, select an instance or system, and from the context menu, choose Analyze Log Files. The default values are 1000 lines per log file, severity error, and last 10 minutes. You can change these settings in the log view after the result is displayed.
- To view the configuration change logs of the SAP AS Java servers, select a system or instance and, from the context menu, choose Show Change Logs.
Dumping the Java Stack Trace
- To dump the server processes' Java stack trace, select the relevant server process and, from the context menu, choose Dump Stack.The resulting Java server stack trace is stored in the dev_server<n> file in the usr\sap\<SID>\<instance name>\work directory.
- To view the dump stack trace, from the context menu, choose Show Developer Trace as described above).
Note
If the file is too large, in the Open file dev_server<n> dialog box, choose the required option.
View Logs and Traces from Log Files Node
- To view all log and trace files of an instance, from the tree structure of the relevant instance, select the Log Files node.
- In the result view, select the file you want to view and, from the context menu, choose Show Log File.
- From the stack traces in the log files, jump to the source code (if available in workspaces).
The Log File View
Auto Refreshing a Log File
Showing an Entire Log File
Analyze Log Files

The Log View Tool Bar
Icon
|
Use
|
---|---|
Refresh
|
Refresh the change logs of an AS Java server
|
Clear
|
Delete the content of the currently selected tab.
|
Remove
|
Use as quick link to close all open tabs.
|
Lock
|
Lock scrolling on auto refresh.
|
Filter
|
Toggle server filtering.
|
Syslog
|
Use as quick link to display the last 1000 lines of each default AS Java trace in the whole system.
|
Server Log File Filtering
- To set a filter, open the view menu Filters ...
- The available fields for the current log files are displayed in a new window.
- Select the desired field, for example User, and enter a search expression (wild cards are supported).
- Close the window.
- Enable the filter in the tool bar.
- Choose Auto refresh or refresh the log file.