Yes, it is possible using Extended Log Format and Custom Field IDs . I provide a Java implementation for a custom field by printing out the session ID below. Follow the steps of the 2nd link to configure the entire solution. Adapt the full name to your preference.
import weblogic.servlet.logging.CustomELFLogger;
import weblogic.servlet.logging.FormatStringBuffer;
import weblogic.servlet.logging.HttpAccountingInfo;
public class MyCustomField implements CustomELFLogger {
public void logField(HttpAccountingInfo metrics, FormatStringBuffer buff) {
buff.appendValueOrDash(metrics.getRequestedSessionId());
}
}
source
share