Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

User Access Logs not generating

Nalin Wijeratne February 1, 2021

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 

2 answers

0 votes
Daniel Ebers
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.
February 1, 2021

Hi @Nalin Wijeratne

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

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

Regards,
Daniel

Nalin Wijeratne February 4, 2021

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

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>
Daniel Ebers
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.
February 4, 2021

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?

Nalin Wijeratne February 4, 2021

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

Daniel Ebers
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.
February 4, 2021

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

0 votes
Anıl Yavuz February 1, 2021

Hello Nalin,

Here is a link for enabling user access logs for Confluence Server and Datacenter.

Best Regards.

Anıl.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events