Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Login Audit

Avatar

Level 6

Hi,

Is there any OOTB reporting with the users that logged into AEM and the time they logged in?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi 

I am not sure, but i guess there is no OOTB for this.

You can definitely achieve this from access.log.

     access.log

  • All access requests to AEM WCM and the repository are registered here.

Example:- 

Login time log like this:

admin 20/May/2016:12:18:39 +0530 "GET /index.html HTTP/1.1" 302 - "http://localhost:4502/libs/granite/core/content/login.html?resource=%2F&$$login$$=%24%24login%24%24&..." "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"

 

Logout log:

0:0:0:0:0:0:0:1 - admin 20/May/2016:12:19:20 +0530 "GET /system/sling/logout.html HTTP/1.1" 302 - "http://localhost:4502/projects.html/content/projects" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"
0:0:0:0:0:0:0:1 - anonymous 20/May/2016:12:19:20 +0530 "GET 

Parse the logs to do the needful.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

Hi 

I am not sure, but i guess there is no OOTB for this.

You can definitely achieve this from access.log.

     access.log

  • All access requests to AEM WCM and the repository are registered here.

Example:- 

Login time log like this:

admin 20/May/2016:12:18:39 +0530 "GET /index.html HTTP/1.1" 302 - "http://localhost:4502/libs/granite/core/content/login.html?resource=%2F&$$login$$=%24%24login%24%24&..." "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"

 

Logout log:

0:0:0:0:0:0:0:1 - admin 20/May/2016:12:19:20 +0530 "GET /system/sling/logout.html HTTP/1.1" 302 - "http://localhost:4502/projects.html/content/projects" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"
0:0:0:0:0:0:0:1 - anonymous 20/May/2016:12:19:20 +0530 "GET 

Parse the logs to do the needful.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni