If you want correlation logs to be enabled every time the server starts, add the following system property to the product start-up script (stored in the
<ESB_HOME>/bin/directory) and set it to
Alternatively, you can pass the system property at the time of starting the server by executing the following command:
Now when you start the ESB server, the
correlation.log file is created in the
The detail recorded in a log entry is described below.
The time at which the log is created.
Each log contains a correlation ID, which is unique to the HTTP request. A client can send the correlation ID in the header of the HTTP request. If this correlation ID is missing in the incoming request, the ESB will generate one for the request.
The HTTP header that carries the correlation ID is configured in the ESB.
The identifier of the thread.
The duration (given in milliseconds) depends on the type of log entry:
There are two possible call types:
This is a name that is generated to identify the connection between the ESB and the external client.
The HTTP method used for the request.
The connection URL of the external client with which the message is being communicated. For example, if the message is being read from the client, the connection URL corresponds to the client sending the message. However, if the message is being written to the backend, the URL corresponds to the backend client.
Listed below are the state changes that a message goes through when it flows through the ESB, and when the message flows between the ESB and external clients. Typically, a new log entry is generated for each of the states. However, there can be two separate log entries created for one particular state (except for BACKEND LATENCY and ROUND-TRIP LATENCY) depending on whether the message is being read (from the sender) or written (to the backend). You can identify the two separate log entries from the connection URL explained above.