Lesson 5: K2BAudit Activity Log

In this lesson, we are going to learn how to use K2B Audit Activity Log. This can be used to keep an eye on sensitive data (who view what), to provide customer support (follow user steps), to analyze application usage, etc. To activate K2B Audit Activity Log, follow this steps:

  1. Open Genexus and go to K2B Audit located inside Preferences.
    K2BAuditPreferences
    K2B Audit

  2. Inside K2BAudit Properties, change "Activity Log Knowledge Base Role" to "Logged".
    K2BAuditActivityLog
    Activity Log Property

  3. Click "Yes" in order to initialize the activity log.
    K2BAuditActivityLogYes
    Activity Log Initialization

  4. Open Audit Analyzer Knowledge Base.
    OpenAnalyzeKnowledgeBase
    Open Analyzer Knowledge Base

  5. Go to K2B Audit located inside Preferences.
    K2BAuditPreferences
    K2B Audit

  6. Inside K2BAudit Properties, change "Activity Log Knowledge Base Role" to "Analyzer".
    K2BAuditActivityLog1
    Activity Log Property

  7. Click "Yes" in order to initialize the activity log in the Analyzer Knowledge Base.
    K2BAuditSettings
    Activity Log Initilization

  8. Build your Analyzer application and go back to your Audited Knowledge Base.
    K2BAuditAuditedKB
    Audited Knowledge Base

  9. Go to Product Entity Services and add a Actions node to the Work With:
    K2BAuditAddActions
    Actions Node

    • Add a action node to the actions node with the following properties:
      • Action Name (Id):IncreasePrice
      • GXObject : IncreaseProductPrice
      • Image: ImgIncreasePrice
      • Position: In Grid
      • Activity log class: ActionAccess
  10. Build your application and run the Developer Menu. Access WWProduct and click on the new action added two times in order to increase the price of a product.
    K2BAuditIncreasePrice
    Increase Price

  11. Go back to your Analyzer Application in runtime by running the Developer Menu and access ActivityLog Web Panel.