Using Predefined Log File Formats

Context

You can select a format for log file entries or define one yourself. Log file formats are defined using subparameter LOGFORMAT of profile paramater icm/HTTP/logging_<xx> for inbound requests, or subparameter LOGFORMAT of profile parameter icm/HTTP/logging_client_<xx> for outbound requests. This section explains how you can use a predefined log file format.

Procedure

  1. Select a log file format.
    You can select one from the following predefined log file formats:
    • CLF - common Log file format:

      10.18.104.36 - - [15/Oct/2007:16:18:35 +0100] "GET /dummy?para=100&user=sap HTTP/1.0" 200 86

      The CLF format consists of the following placeholders:

      %h %l %u %t "%r" %s %b

    • CLFMOD - modified common log file format:

      The form fields and URI parameters are not written to the trace file (for security reasons these values are not saved to the log file):

         10.18.104.36 - - [15/Oct/2007:16:18:35 +0100] "GET /dummy HTTP/1.0" 200 86

      The CLFMOD format consists of the following placeholders:

      %h %l %u %t "%r2" %s %b

    • SAP - SAP log file format:

      Here the processing time in milliseconds in the application server is also logged:

         [15/Oct/2007:15:41:35 +0100] 10.18.104.36 - - "GET /dummy HTTP/1.0" 200 86 10

      The SAP format consists of the following placeholders:

      %t %h %u - "%r2" %s %b %L

    • SAPSMD:

      Log format for tracking HTTP requests using the HTTP header field X Correlation ID:

      [15/Oct/2007:15:41:35 +0100] - "GET /dummy HTTP/1.0" 200 86 [10] h[A7594F39ED9F7C41BABA7397F8070718-1-5] |

      The SAPSMD format consists of the following placeholders:

      %t - "%r0" %s %b [%L] h[%{X-CorrelationID}i]

    • SAPSMD2:

      Log format for tracking HTTP requests using the HTTP header field X Correlation ID: This log format contains the output of the full request and response header.

      The SAPSMD2 format consists of the following placeholders:

      %t - "%r0" {%{[?]}i} %s %b [%L] {%{[?]}o}

  2. Set LOGFORMAT in profile parameter icm/HTTP/logging_<xx> or in profile parameter icm/HTTP/logging_client_<xx> to one of the following values if you want to use a predefined format:
    • LOGFORMAT=CLF
    • LOGFORMAT=CLFMOD
    • LOGFORMAT=SAP
    • LOGFORMAT=SAPSMD
    • LOGFORMAT=SAPSMD2
    We recommend that you use the predefined format SAP.