Tomcat server can be configured to use different type of logging systems, the server comes with default logging configuration and can be configured to use log4j. The access logs are based on the LogValve interface and
Steps:
- Add Log Data In XpoLog, When adding a log to XpoLog you can now select the Log Type (logtype) for Apache Tomcat with the following logtypes:
- tomcat
- in addition select also the log type - access or out or servlet
- in addition select also the log type - access or out or servlet
- tomcat
- Once all required information is set click next and edit the log pattern, this step is crucial to the accuracy and deployment of the Analytic App. Use the following conversion table to build the XpoLog pattern out of the log format.
...
{geoip:Client IP,ftype=remoteip;type=;,} {string:Remote Log Name,ftype=remotelog;,} {string:Remote User,ftype=remoteuser;,} [{date:Date,locale=en,dd/MMM/yyyy:HH:mm:ss z}] "{choice:Method,ftype=reqmethod;,GET;POST} {string:URL,ftype=requrl;,}{block,start,emptiness=true}?{string:Query,ftype=querystring;,}{block,end,emptiness=true} {string:reqprotocol,ftype=reqprotocol;,}" {number:Status,ftype=respstatus;,} {number:Bytes Sent,ftype=bytesent;,}{block,start,emptiness=true} {number:TimeToPrcessRequest,ftype=processrequestmilli;,}{block,end,emptiness=true} "{string:Referer,ftype=referer;,}" "{string:User Agent,ftype=useragent;,}"{eoe}
for For more information see below:
https://tomcat.apache.org/tomcat-7.0-doc/logging.html
https://tomcat.apache.org/tomcat-8.0-doc/logging.html
https://tomcat.apache.org/tomcat-9.0-doc/logging.html
If the Server is using the log4j library please follow the steps documented in adding logs from log4j 1.2 or log4j 2.*
Apache Https Access Log Format Conversion Table
...