Example of a Log File for a Server Request Processor

The following code displays a log file entry in a sample server request processor log file, which can help you troubleshoot why a component request might not run. The name of this log file is SRProc_TaskID.log and is found in the SIEBELSRVR_ROOT\log directory. This code captures an event defined by the event SRMRouting subtype, which belongs to the SRMRouting component event type. The following table provides a detailed description of the sample output. This event has a log level of 4.

2021 2017-05-11 11:54:24 2017-05-11 12:50:55 +0530 000002d4 001 003f 0001 09 
TestMTSBound 4194307 332 2976 m:\siebel\log\TestMTSBound_0004_4194307.log 17.0 
[xxxxx] ENU
Log Header Detail Description

2021

Indicates the values of the LogEol and LogXlateMsgs parameters, as well as the file version and file completion indicators.

The first number represents the LogEol parameter. This parameter can take values CRLF, LF, CR, or a custom value where:

  • CRLF represents \r\n and is shown as 2 in the log file.

  • LF represents \n and is shown as 1 in the log file.

  • CR represents \r and is shown as 0 in the log file.

  • A custom value is shown as 3 in the log file.

The second number represents the file completion indicator as zero and does not change. The third number represents the file version indicator as 2 and does not change. The fourth number represents the value of the LogXlateMsgs (translate log file) parameter in the log file.

The LogXlateMsgs parameter can take the values true or false where:

  • True indicates that log files are translated. It is shown as 1 in the log file.

  • False indicates log files are translated. It is shown as 2 in the log file.

In this example, 2021 indicates the following:

  • LogEol = 2 (new line character is \r\n)

  • File completion error is 0

  • File version is 2

  • LogXlateMsgs = 1 (translate)

2017-05-11 11:54:24

Log file creation timestamp.

2017-05-11 12:50:55

Log file completion timestamp.

+0530

Indicates the time difference of the Siebel Server time zone from GMT in the format ±HHMM, where HH represents hours, and MM represents minutes.

000002d4

The number of lines in the log file in hexadecimal format.

001

The segment number in decimal format.

003f

The LogEntryFlgs parameter value is applicable only if the LogEntryFmt parameter is set to delimited. If the LogEntryFmt parameter is set to fixed, then all the fields are logged.

When the LogEntryFmt is set to delimited, the LogEntryFlgs parameter takes values in decimal format and then internally converts the values to binary format. For example, if the LogEntryFlgs parameter is set to the value of 63, then the value is converted to its binary equivalent of 00111111, and is then processed further. The bits are numbered from right to left, starting from 0 to 7 (the seventh bit is 0, and the zero-position bit is 1).

Given the following log file entry:

SisnTcpIp SisnSockDetail 4 00000cd049bd8290:0 42017-
05-16 10:57:02 35928:LOCALTRANS-server] accept() 
timeout during get conn request

If the bit in the:

  • Zero position is set, then this least significant bit (LSB) logs the main event type, which in the log file entry is SisnTcpIp.

  • First position is set, then the subevent type is logged, which in the log file entry is SisnSockDetail.

  • Second position is set, then the event severity is logged, which in the log file entry is 4.

  • Third position is set, then the timestamp is logged, which in the log file entry is 42017-05-16 10:57:02.

  • Fourth position is set, then the details are logged, which in the log file entry is 35928:LOCALTRANS-server] accept() timeout during get conn request.

  • Fifth position is set, then the flow ID and the SARM ID are logged, which in the log file entry is 00000cd049bd8290.

0001

The number of characters in the LogFieldDelim parameter. The default value is \t.

09

Represents the characters in the LogFieldDelim parameter. The default value is \t. For example, 09 represents the character \t, and 09 is the hexadecimal representation of the ASCII value of the character \t.

TestMTSBound

The name of the component.

4194307

The task ID.

332

The process ID of the component process.

2976

The thread ID.

m:\siebel\log\TestMTSBound_0004_4194307.log

The log file name.

17.0 [xxxxx] ENU

The product version, including the language code.