When logging uses access to Confluence if the user hits a page such as the below:
https://xxxxxxx.com/pages/viewpage.action?pageId=15212342342
The Log4J does not record the full url it eleminates the query string after ?
Any workaround?
Which version of confluence are you using? Which logs are you checking? is there any customisation at the webserver/proxy level? can you share your server.xml (accesslogvalve- pattern controls what exactly is logged)
Not reproducible in my test env with default settings.
I'm using confluence 6.12
Server.xml has no logger setting as it was deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties
And i thought we were talking about access logging. https://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Access_Logging. Let me try agian:
Which logs are you checking?
Name of log && Usecase?
confluence/WEB-INF/classes/log4j.properties is for debugging appliation classes .
Yes, I'm using log4j,properties,
Strait forward implementation. Uncommented the tracking lines as below:
log4j.appender.synchronylog=org.apache.log4j.RollingFileAppenderlog4j.appender.synchronylog.File=${catalina.home}/logs/atlassian-synchrony.log
log4j.category.com.atlassian.confluence.util.AccessLogFilter=INFO
The below is an example from the logfile:
2018-11-27 15:36:54,302 INFO [https-jsse-nio-10.1.0.174-443-exec-4] [atlassian.confluence.util.AccessLogFilter] doFilter username GET https://localhost/pages/viewpage.action 498540-28472 656 192.168.1.3
The page should look like the below:
viewpage.action?pageId=113643442
It looks like you're new here. Sign in or register to get started.