Downloading and Uploading Logs and Traces

Use

In any predefined or custom view, you can download all log and trace records into a Comma Separated Value (CSV) formatted file. For example, you can view log/trace records in a human-readable format on a remote SAP NetWeaver system.

At first, the records are only extracted. Then, you can download them to a CSV formatted file and save it on your local file system.

When extracting log files, if the maximum size is exceeded, you can just download the extracted records. Then, you can continue with the extraction of the next portion of log records.

Log Viewer also allows you to upload external files, which you can then filter to easily investigate their content.

Prerequisites

You have opened SAP NetWeaver Administrator and choosen Start of the navigation pathTroubleshooting  Next navigation step Logs and Traces  Next navigation step Log ViewerEnd of the navigation path.

Downloading Content

  1. Open the view whose logs you want to extract and download.

  2. Choose Start of the navigation path Log Files  Next navigation step Download Content End of the navigation path.

  3. From the dialog box, choose which columns should be visible and then choose Download.

    A counter processes the number of log records that are currently extracted.

  4. Download the current log records extraction (estimated in megabytes) and save the file on your local file system.

Reading the Downloaded Content

  1. Open the file, using a spreadsheet application.

  2. Select column A .

  3. From the Data menu, choose Text to Columns.

  4. In the Convert Text to Columns Wizard - Step 1 of 3 dialog box, select the Delimited indicator and choose Next.

  5. In the Convert Text to Columns Wizard - Step 2 of 3 dialog box, select the following indicators: Tab, Comma, and Treat consecutive delimiters as one.

  6. From the Text qualifier dropdown box, select double quotation marks (") and then choose Next.

  7. In the Convert Text to Columns Wizard - Step 3 of 3 dialog box, select the General indicator and choose Finish.

Downloading Log Files

  1. Open the view whose logs you want to extract and download.

  2. Choose Start of the navigation path Log Files  Next navigation step Download Files End of the navigation path.

  3. Select the files you need and choose Download .

  4. Save the file on your local file system.

Uploading External Log Files

  1. Choose Start of the navigation path Log Files  Next navigation step Open External Files End of the navigation path.
  2. Browse to the exernal log file location.
  3. In the second field, enter the name of the log file.

    The new file is copied as a subdirectory of j2ee\cluster\customLogs\log.

  4. After successful upload, a new predefined view called Uploaded Log Files is opened. If the log file can be parsed, its content is displayed in the table, otherwise it is shown as plain text.
  5. To see all uploaded external files, choose Start of the navigation pathLog Files Next navigation step Show Uploaded FilesEnd of the navigation path.

    This option is only available for the Uploaded Log Files view.

More Information

Log Types and Formats