WAS traditional HTTP Access Log Recipe
In general, the WAS traditional HTTP access log has a low overhead of less than 1-2%.
There was a regression in 8.5.5.24, 9.0.5.16, and 9.0.5.17 that
caused timestamp display issues when using accessLogFormat
and it was fixed in APAR PH56229 and subsequent fixpacks.
- WAS Administrative Console } Servers } Server Types } Websphere
application servers }
$SERVER
} Web Container Settings } Web container transport chains - Click on each entry that is handling the traffic of interest (most
commonly,
WCInbound
and/orWCInboundSecure
) and perform the following steps.- HTTP inbound channel
- Check "Enable logging"
- Expand "NCSA Access logging"
- Check "Use chain-specific logging"
- Access log file path =
${SERVER_LOG_ROOT}/http_access.log
- Access log maximum size = 500
- Maximum Number of historical files = 2
- NCSA access log format = Common
- Expand "Error logging"
- Check "Use chain-specific logging"
- Error log file path =
${SERVER_LOG_ROOT}/http_error.log
- Error log maximum size = 500
- Maximum Number of historical files = 2
- Click Apply
- Click "Custom properties"
- Click New...
- Name = accessLogFormat
- Value =
- WAS 9 or WAS >= 8.5.5.6:
%h %u %t "%r" %s %b %D %{R}W
- WAS < 8.5.5.6:
%h %u %t "%r" %s %b %D
- WAS 9 or WAS >= 8.5.5.6:
- Click OK
- Save configuration changes
- Synchronize nodes
- Restart the JVM
- Reproduce the problem
- Upload the following files:
$WAS/profiles/$PROFILE/logs/http*.log
$WAS/profiles/$PROFILE/logs/System*.log
$WAS/profiles/$PROFILE/logs/native*.log
$WAS/profiles/$PROFILE/ffdc/*
For background, see WAS traditional HTTP Access Log.