User Access Logs not generating
Asked by Nalin Wijeratne:

Hi,

We could not find the user access logs on our confluence server ,   
Can someone please help us to enable this feature.

Much Appreciate,

Nalin


Answers:
author: Daniel Ebers
body: Hi [@Nalin Wijeratne](/t5/user/viewprofilepage/user-id/2188738)

adding to the link of An?l here is some more general information about where to find the logs for Confluence

**Working with Confluence logs**

* <https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html>

Please let us know if it worked out and you were able to find the logs.

Regards,  
Daniel

comments: author: Nalin Wijeratne
body: Hi,  

Unfortunately It did **not** resolve by generating User_Acceess_Logs file in the Confluence Logs folder , By the way we are running Confluence version : 7.5.1 ,

"

### *Log the details of users accessing each Confluence page* {#toc-hId-1224756015}

*Access logging using Tomcat Valve is enabled by default from Confluence 7.11. These logs are not part of the application log, and can be found at `<install directory>/logs/conf_access_log.<date>.log`."*

Even though default suppose to generate this log file separately but not.,   

I have tried following suggested , and reboot the servers and waited for 24 hrs , still no user_access_logs.   

***To enable user access logging:***

1. *Uncomment this line in `confluence/WEB-INF/classes/log4j.properties`:*

   ```
   `log4j.category.com.atlassian.confluence.util.AccessLogFilter=INFO`
   ```

2. *Enable the filter in `confluence/WEB-INF/web.xml `by removing the comments around these lines (or adding if they are not included):*

   ```
   `<filter-mapping>    <filter-name>AccessLogFilter</filter-name>    <url-pattern>/display/*</url-pattern></filter-mapping><filter-mapping>    <filter-name>AccessLogFilter</filter-name>    <url-pattern>*.action</url-pattern></filter-mapping>`
   ```


author: Daniel Ebers
body: I'd also say that from the description a separate log should be created, however in the info box it reads:  

"By default, this logging information is stored in the `atlassian-confluence.log` file in the Confluence Home directory. "  

Did you check if the user access is logged to atlassian-confluence.log although not intended?


author: Nalin Wijeratne
body: I found the `atlassian-confluence.log` in following location :Atlassian\\Application Data\\Confluence\\logs"  

Actually it updated today.  
Has information such as LDAP sync number of users /groups sync with AD etc,  

But we are interest in following detailed information about user specific access logs,   
specifically Username , ( or Display Name ) , Log suppose to capture all action specific to that user once logged ( such as read page / write / modify / delete content /adding new contents , etc )

Would you please email me , then we can go more detailed into the logs file that is currently generated ,   

my email is: nalin.wijeratne@cae.com

Thanks,

Nalin


author: Daniel Ebers
body: Support via email is something Atlassian Support offers - assuming you have a valid maintenance (license).

To summarize what we have so far:  
in case the settings are made according to documentation access log should, indeed, show up in the file system.  

If this does not work you would have to check if all settings are applied correctly.  

A different approach could be to check the logs of any reverse proxy which might be in use in your setup (Apache or nginx are common ones, just to name them).  

Probably you would also achieve a better result by a newer version of Confluence, however, acconrding to documentation you followed it should also work with Confluence version 7.5.  

In case you want to double check you could report back here or refer to Atlassian support (<https://support.atlassian.com/contact/>)

Regards,  
Daniel


author: An?l Yavuz
body: Hello Nalin,

Here is a [link](https://confluence.atlassian.com/confkb/how-to-enable-user-access-logging-182943.html) for enabling user access logs for Confluence Server and Datacenter.

Best Regards.

An?l.


Tags: confluence-server

server