Tech Tip: How to add local IP address and hostname to the local_access_log
Spectrum Tech Tip posted by Senior Support Engineer, Bill Wolforth on 10-7-2014
By default we display in the $SPECROOT/tomcat/local_access_log the following information based upon the pattern variables.
%l - Remote logical username from identd (always returns '-') %u - Remote user that was authenticated %t - Date and time, in Common Log Format format %r - First line of the request %s - HTTP status code of the response %b - Bytes sent, excluding HTTP headers, or '-' if no bytes were sent %D - Time taken to process the request, in milliseconds
This looks like the following below:
However no local IP address or hostnames are shown.
In order to add local IP address and hostname to the local_access_log please make the following changes.