Clarity

  • 1.  Last Logged In tracking

    Posted May 04, 2015 01:35 PM

    Hello!

    We are trying to develop a logon monitoring report in order to show how often users use Clarity in our company.

    We found the "Last Logged In" atribute, but we need all user logon during a month, for example, not only the last one.

    Is there a possible way to do it?

     

    Thanks



  • 2.  Re: Last Logged In tracking

    Posted May 07, 2015 11:56 AM

    I think you won't be able to do it with the data available on the database.

     

    You may implement something to generate this data. For example, you can make a process that will record the last login date every couple of hours in a custom table or custom object.

     

    Regards,

    Roberto Barra



  • 3.  Re: Last Logged In tracking

    Posted May 07, 2015 12:22 PM

    The access log files could also be analysed.



  • 4.  Re: Last Logged In tracking

    Posted May 07, 2015 12:27 PM

    I thought about them, but I guess that they don't have the user ir ou user name, only client IP.



  • 5.  Re: Last Logged In tracking
    Best Answer

    Posted May 07, 2015 02:01 PM

    The access logs contain the session ID as the final parameter now (this change was made sometime during 13.x, I'm not sure which version exactly).

     

    The session ID alone cannot be used to identify someone, but if you gather them from the logs and check the CMN_SESSIONS and/or CMN_SESSION_AUDITS tables before the records are removed again, you can then perform a lookup through the USER_ID to the CMN_SEC_USERS table for the information.

     

    There is a Log Analyzer Package that - if/when it is available (it isn't currently) - may perform this work and provide this information using this method, but the release of this is undetermined currently.  You may wish to follow updates on this thread to see when an update on that can be given: Log Analyzer Package (aka Apache Tomcat Log Analysis Package)



  • 6.  Re: Last Logged In tracking

    Posted May 07, 2015 03:06 PM

    We'll test the tips you proposed. That helped us a lot!

    Thanks everyone!



  • 7.  Re: Last Logged In tracking

    Broadcom Employee
    Posted May 08, 2015 03:21 AM

    Hi Flor,

     

    There is already a job from 14.1 on wards and you can build reports using the below tables.

     

    From Change and Impact Guide

     

    Apache Tomcat Log Analysis

    The following jobs have been added to create and manage data that you can use to analyze performance in an Apache Tomcat environment. You can add custom portlets, queries, or externally available content to provide details regarding system performance. Although the job runs for application servers other than Tomcat, no data is created.

    • Tomcat Access Log Import/Analyze JobThis job imports and analyzes Tomcat access log files from the local CA Clarity PPM environment (all app services). The job stores and summarizes the data in the following designated tables:
      • LOG_DETAILS
      • LOG_SUMMARY
      • LOG_FILES
      • LOG_REPORTDEFS
    • Delete Log Analysis Data JobThis job removes the analysis-related data that is stored in CA Clarity PPM. The criteria for removing the data is the LOG_DATE on each of the log analysis tables.The job is scheduled to run automatically at 1:00 A.M. each day.

    Upgrade Action: None


    Regards

    Suman Pramanik



  • 8.  Re: Last Logged In tracking

    Posted May 08, 2015 10:21 AM

    We are in 13.2 version, but maybe we'll update it soon

    Thanks Suman!



  • 9.  Re: Last Logged In tracking

    Posted May 08, 2015 02:06 PM

    Another option if on premise would be an after update trigger which updated an custom table to track the information you need.

     

    V/r,

    Gene