PowerConnect for SAP Solutions
Breadcrumbs

KB 41 - Enabling Portal Activity Data Collector

KB 41 (Java) - Enabling Portal Activity Data Collector

Category: Information

Priority: Normal

Platform: Java(NW)

Version: 1 from 23.03.2021

Description

The following instructions show how to enable the Portal Activity extractor for the Java environment and configure the PowerConnect Java agent to collect these logs:

  • Go to the Enterprise Portal by entering the following URL:
    http://<Hostname_of_AS_Java_Server>:5<Instance_Number>00/irj

  • Then go to System Administration -> Content Statistics -> Data Collector Configuration

worddav7afc134c65e81644ccb6de19e9cafcfe.png
  • Make sure the "Close files every 60 minutes" option is checked

  • Click on Collector Files

  • Setup the portalActivity data file to use the following entries:

worddav9244bffab1932e71381310bb720312cb.png
worddavb640a4a3c357d6b237fbc1d86c9e6f76.png

Note the order of these fields is critical for the PowerConnect Java agent log header configuration detailed below

  • Enable the Activity Data collector application by going to the NWA console using the following URL:
    http://<Hostname_of_AS_Java_Server>:5<Instance_Number>00/nwa

  • Click the Operations tab then the Start & Stop link:

worddav842034907e8eea3aa5f48ceff4a1c3f2.png
  • Click the Java Applications tab

  • Search for "activity" in the Name column

worddav5868510f57088dd967c92d4eb9c9f2bf.png
  • Click on Portal Service Configuration

worddav8b3fc1976cf36b87cb4625a0606ee501.png
  • Ensure the data Collection Hook is set to True

worddav1170392a390a1f829b4938af1a7b4ba4.png
  • Navigate Back

worddav80d03a1e4b7453ae1274cc6964b0fc16.png
  • Restart the Data Activity Collector by clicking the Restart button

worddav98b715f24de6c9e5f902e40c8e3b544b.png
  • Files will start to appear in the following directory

/usr/sap/<SID>/<SID>/j2ee/cluster/server#/portalActivityTraces

image-20210723-041524.png


Configure the PowerConnect Java agent to collect the Portal Activity Logs:

  • Go to the PowerConnect Java agent UI by entering the following URL: http://<Hostname_of_AS_Java_Server>:5<Instance_Number>00/ webdynpro/resources/com.powerconnect5/spcj_wd/SapPowerConnectJava

  • Click on the Log Monitoring Tab

  • Set the Portal Activity Log File Header value to be a comma separated string of field names as defined in the portalActivity data file configuration above e.g.


TimeOfRequest,LoggedOnUser HASH,iView PCD URL HASH,Header of Request HASH,URL Query String HASH,TimeToProcess Request,ServerNode,HTTPSessionID,NavigationPath,ObjectType,ServerHost,UniqueID,URLQueryString,IViewName,BrowserType,EmbeddedInPage,LoggedOnUser,UserType,PortalApplication,PortalComponent,iView PCD URL

image-20210723-041652.png
  • Click Save

  • Click on the General tab

  • Tick the Portal Activity Monitoring Enabled checkbox in the Logs section

worddav7f2eaf50380a136ea5868367af441da6.png
  • Restart the PowerConnect Java agent

    image-20210723-041755.png