Debug logs and Logviewer concepts Part 2…
Introduction
The Netweaver Log viewer is a versatile tool that provides access to all Netweaver logs as well as logs from deployed applications such as SAP Sourcing / CLM. The filtering capabilities of the tool provide access to a specific node or all nodes with the results merged into a single display. In addition to the display capabilities, the tool also provides download capabilities for either the filtered content or the raw log files. When the content results exceed 5MB, the tool automatically generates separate 5MB files. In the case of the raw log files, the tool automatically compresses the files in a zipfile. The UI and functionality is slightly different between CE 7.11 and 7.3. This is part 2 in a 3 part series. In part 2, the discussion is specific to the use of Netweaver 7.3.
Part 2 Netweaver 7.30
Initial Configuration
In this system we have one Java server with three server processes(nodes). As such there are three application instances on three server nodes. There are three sets of log and trace files generated.
Setting up debug logging
In the log configuration area of NWA, select Tracing Locations in the Show field.
Select DEBUG on the area or areas you want to set DEBUG logging on. Typically we select The E-Sourcing Folder, Set Debug then use the Copy to Subtree button. At this point you would see the selections shown below. This currently includes SQL debug. Unless this is specifically asked for, the suggested setting would be to set the sql severity back to error. Click save configuration.
Using Custom Views to limit files and content
This section describes the steps to create and save a custom Log Viewer view with some specific guidance on some settings for SAP Sourcing.
Navigate to Troubleshooting –> Log Configuration
Navigate to Open View –> Create New View…
In Netweaver 7.30 the file selection and content filtering is in the same section (Filter by Content).
Configured filters…. In this example, we chose to only select log files with eso in the filename. Since both the .log and .trc files are created in the filname format eso
Save View…. Select a view name that describes the result or the problem type it will help analyze.
Example custom view filtering source files and content. In this case, we chose log entries from all nodes that were logging messages that contained “Script” in them.
Using the custom view going forward…
Open View –> Select saved view. These are the selections located above the ———————–
Adding additional fields to the results to identify log entry source
View –> Customize Layout.
When there are multiple server nodes or multiple Instances involved, it may be useful to include one or more of thefollowing:
Host
System
Instance
Node
This will facilitate locating where the problem manifested itself and allow for a second level of investigation.
Dowloading filtered results
The facility to download the filtered results is simple to use and allows for some basic manipulation. If the results exceed 5MB, the file will be broken into 5MM chunks. Click download…
Click The link to the file.
Click save.
The default location for file downloads….
New NetWeaver Information at SAP.com
Very Helpfull