Function documentationHTTP Logging Locate this document in the navigation structure

 

If you are using your SAP System as an HTTP client or server, you can record the HTTP requests.

You can then evaluate the resulting log file.

Features

The following components of the SAP system support HTTP logging:

  • Internet Communication Manager (ICM). For details see Logging in the ICM.

  • SAP message server. The section below explains how to activate logging in the message server.

HTTP Logging in the Message Server

You activate logging using the ms/http_logging parameter (default = 0, no logging) by setting the value to 1. You can change the parameter value in transaction SMMS (message server monitor) or RZ11. If you deactivate logging, the log file is not closed - all the buffered data is written to the hard drive so that it is available in the file.

You can define the log format using the ms/HTTP/logging_0 parameter.

The syntax is the same as in icm/HTTP/logging_<xx> but only index 0 is supported.

The default value is:

PREFIX=/, LOGFILE=dev_ms_logging, LOGFORMAT=SAPMSG

The format string for SAPMSG is:

%h %l %u %t "%r" %s %b %{location}o

Activities

Set the parameter as described above.

Example

The content of a log file then looks like the following:

10.18.200.77 - - [01/Oct/2003:13:29:57 +0200] "GET /msgserver/text/logon HTTP/1.1" 200 - ls3022

10.17.69.0 - - [01/Oct/2003:14:10:05 +0200] "GET /sap/bc/ping HTTP/1.0" 301 - <http://binmain:8080/sap/bc/ping>

10.17.69.0 - - [01/Oct/2003:14:11:15 +0200] "GET /sap/bc/ping HTTP/1.0" 301 - <http://ls3022:8080/sap/bc/ping>