how to config atlassian-confluence-access.log
Asked by Jone:

1?When I enter into page (for example ip:/pages/viewpage.action?pageId=90275859),there are two logs in backstage?image2016-1-9 18:5:22.png {#toc-hId--1325741254}
-----------------------------------------------------------------------------------------------------------------------------------------------------------------

Now I want record the specific page( pageId=90275859), what should I do? {#toc-hId--438237573}
----------------------------------------------------------------------------------------------

2?when I click to download some attachment file "/download/attachments/90275859/\*\*\*.xlsx", there isn't the download record "inatlassian-confluence-access.log" ,could you tell me how to config? {#toc-hId-449266108}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

THANK YOU! {#toc-hId--1150743044}
=================================

[](https://community.atlassian.com/t5/Confluence-questions/how-to-config-atlassian-confluence-access-log/qaq-p/97866?attachment-id=5431){#link_11913963997eb2}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/16395/1/image2016-1-9%2018%3A5%3A43.png){#display_11913963997eb2_0}  
[](https://community.atlassian.com/t5/Confluence-questions/how-to-config-atlassian-confluence-access-log/qaq-p/97866?attachment-id=5432){#link_11913963997eb2_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/16395/2/image2016-1-9%2018%3A5%3A22.png){#display_11913963997eb2_2}


Answers:
author: Vijay Koleti
body: I've configured Tomcat Access Logging. I felt it better as it could log all requests.

FYI: <https://www.techstacks.com/howto/configure-access-logging-in-tomcat.html>


author: Timothy
body: You will have to learn a how to configure Tomcat's logging:

* <https://confluence.atlassian.com/jira/user-access-logging-121565.html#Useraccesslogging-ApplicationServerAccessLogs>

comments: author: Jone
body: why the access logging of confluence can't monitor "/pages/viewpage.action" 's suffix"?pageId=90275859" and "/download/attachment/..." ?I want to know how to edit confluence's logging . The access logging of confluence format in directory - "/home/confluence-3.2.1_01-std/confluence/WEB-INF/classes/log4j.properties" is: \<user\> \<url\> \<starting memory free (kb)\> +- \<difference in free mem (kb)\> \<query time (ms)\> \<remote address\> . If I can add a parameter control the output of \<url\>?


author: Jone
body: And the config of confluence is " 207 log4j.appender.accesslog=org.apache.log4j.RollingFileAppender 208 log4j.appender.accesslog.Threshold=DEBUG 209 log4j.appender.accesslog.File=${catalina.home}/logs/atlassian-confluence-access.log 210 log4j.appender.accesslog.MaxFileSize=20480KB 211 log4j.appender.accesslog.MaxBackupIndex=5 212 log4j.appender.accesslog.layout=com.atlassian.confluence.util.PatternLayoutWithStackTrace 213 log4j.appender.accesslog.layout.ConversionPattern=%d %p \[%t\] \[%c{4}\] %M %m%n 214"


author: Jone
body: if I can edit "log4j.appender.accesslog.layout.ConversionPattern"?


Tags: confluence-administration