Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

log4j does not record hits after the question mark in query string

Mustafa Abusalah November 26, 2018

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?

1 answer

0 votes
Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 26, 2018

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.

Mustafa Abusalah November 26, 2018

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

Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 26, 2018

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 .

Mustafa Abusalah November 27, 2018

Yes, I'm using log4j,properties,

Strait forward implementation. Uncommented the tracking lines as below:

log4j.appender.synchronylog=org.apache.log4j.RollingFileAppender
log4j.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

Like jpins likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events