+ All Categories
Home > Documents > Using portal site analysis with the JSR 286 Web Content Viewer Portlet

Using portal site analysis with the JSR 286 Web Content Viewer Portlet

Date post: 03-Feb-2022
Category:
Upload: others
View: 7 times
Download: 0 times
Share this document with a friend
12
Usin in in in in ing po g po g po g po g po g portal s s s s s sit it it it it ite a e a e a e a e a e anal al al al al alysis sis sis sis sis sis w w w w w with the JS ith the JS ith the JS ith the JS ith the JS ith the JSR 286 W 286 W 286 W 286 W 286 W 286 Web Co eb Co eb Co eb Co eb Co eb Content ent ent ent ent ent Viewer Portlet The configuration steps to enable WebSphere Portal Site Analyzer requires a simple change to a properties file.  This will cause log information to be added to the sa.log files. The site analysis log uses the NCSA Combined log format so you will need a tool that understands this format in order to analyze the collected data.  In this exercise we will install the open source tool AWStats for our analysis.  This also requires that ActivePerl to be installed to use this tool. E E na na na na na na b b l l e W e W e W e W e W e W eb eb eb eb eb eb Spher Spher Spher Spher Spher Spher e Po e Po e Po e Po e Po e Po rta rta rta rta rta rta l l Site A Site A Site A Site A Site A Site A na na na na na na l l y y z z er er er er er er 1. Edit wp_profile\PortalServer\config\SiteAnalyzerLogService.properties and add/ change: - SiteAnalyzerFileHandler.fileName=logs/$APPSERVER_NAME/sa.log SiteAnalyzerPageLogger.isLogging=true SiteAnalyzerPortletLogger.isLogging=true SiteAnalyzerSessionLogger.isLogging=true SiteAnalyzerJSRPortletLogger.isLogging=true 2. Push the updated properties into the portal configuration 1) Open a command prompt 2) type “cd \ibm\websphere\wp_profile\configengine” 3) type “ConfigEngine.bat update-properties” 3. Restart the portal. 4. Ensure that the administrative server is Started. 5. Confirm the Properties have been added by  by logging into the WebSphere Application Server administration console and then navigating to Resource > Resource environment > Resource environment providers  
Transcript
Page 1: Using portal site analysis with the JSR 286 Web Content Viewer Portlet

UUUUUUssssssininininining pog pog pog pog pog porrrrrrttttttaaaaaallllll s s s s s sitititititite ae ae ae ae ae annnnnnalalalalalalyyyyyysissississississis w w w w w with the JSith the JSith the JSith the JSith the JSith the JSRRRRRR 286 W 286 W 286 W 286 W 286 W 286 Web Coeb Coeb Coeb Coeb Coeb ConnnnnnttttttententententententVVVVVViiiiiieeeeeewwwwwweeeeeerrrrrr PPPPPPoooooorrrrrrttttttlllllleeeeeetttttt

The configuration steps to enable WebSphere Portal Site Analyzer requires a simplechange to a properties file.  This will cause log information to be added to the sa.log files.The site analysis log uses the NCSA Combined log format so you will need a tool thatunderstands this format in order to analyze the collected data.  In this exercise we willinstall the open source tool AWStats for our analysis.  This also requires that ActivePerlto be installed to use this tool. 

EEEEEEnanananananabbbbbblllllle We We We We We WebebebebebebSpherSpherSpherSpherSpherSphere Poe Poe Poe Poe Poe Portartartartartartallllll Site A Site A Site A Site A Site A Site Ananananananallllllyyyyyyzzzzzzer er er er er er

1. Edit wp_profile\PortalServer\config\SiteAnalyzerLogService.properties and add/change: -

SiteAnalyzerFileHandler.fileName=logs/$APPSERVER_NAME/sa.logSiteAnalyzerPageLogger.isLogging=trueSiteAnalyzerPortletLogger.isLogging=trueSiteAnalyzerSessionLogger.isLogging=trueSiteAnalyzerJSRPortletLogger.isLogging=true

2. Push the updated properties into the portal configuration1) Open a command prompt2) type “cd \ibm\websphere\wp_profile\configengine”3) type “ConfigEngine.bat update-properties”

3. Restart the portal.

4. Ensure that the administrative server is Started.

5. Confirm the Properties have been added by  by logging into the WebSphereApplication Server administration console and then navigating to Resource > Resourceenvironment > Resource environment providers 

 

Page 2: Using portal site analysis with the JSR 286 Web Content Viewer Portlet

UUUUUUssssssininininining pog pog pog pog pog porrrrrrttttttaaaaaallllll s s s s s sitititititite ae ae ae ae ae annnnnnalalalalalalyyyyyysissississississis w w w w w with the JSith the JSith the JSith the JSith the JSith the JSRRRRRR 286 W 286 W 286 W 286 W 286 W 286 Web Coeb Coeb Coeb Coeb Coeb ConnnnnnttttttententententententVVVVVViiiiiieeeeeewwwwwweeeeeerrrrrr PPPPPPoooooorrrrrrttttttlllllleeeeeetttttt

6. Open WP SiteAnalyzerLogService and click custom properties

7. You will see the variables that were set in the  SiteAnalyzerLogService.properties

Page 3: Using portal site analysis with the JSR 286 Web Content Viewer Portlet

UUUUUUssssssininininining pog pog pog pog pog porrrrrrttttttaaaaaallllll s s s s s sitititititite ae ae ae ae ae annnnnnalalalalalalyyyyyysissississississis w w w w w with the JSith the JSith the JSith the JSith the JSith the JSRRRRRR 286 W 286 W 286 W 286 W 286 W 286 Web Coeb Coeb Coeb Coeb Coeb ConnnnnnttttttententententententVVVVVViiiiiieeeeeewwwwwweeeeeerrrrrr PPPPPPoooooorrrrrrttttttlllllleeeeeetttttt

IIIIIInstanstanstanstanstanstallllllllllll Ac Ac Ac Ac Ac ActivtivtivtivtivtivePerePerePerePerePerePerllllll

1. Download Perl http://www.activestate.com/activeperl/2. Install Perl by executing the downloaded fil3. Click Next

Page 4: Using portal site analysis with the JSR 286 Web Content Viewer Portlet

UUUUUUssssssininininining pog pog pog pog pog porrrrrrttttttaaaaaallllll s s s s s sitititititite ae ae ae ae ae annnnnnalalalalalalyyyyyysissississississis w w w w w with the JSith the JSith the JSith the JSith the JSith the JSRRRRRR 286 W 286 W 286 W 286 W 286 W 286 Web Coeb Coeb Coeb Coeb Coeb ConnnnnnttttttententententententVVVVVViiiiiieeeeeewwwwwweeeeeerrrrrr PPPPPPoooooorrrrrrttttttlllllleeeeeetttttt

4. Accept the license agreement

5. Click Next

Page 5: Using portal site analysis with the JSR 286 Web Content Viewer Portlet

UUUUUUssssssininininining pog pog pog pog pog porrrrrrttttttaaaaaallllll s s s s s sitititititite ae ae ae ae ae annnnnnalalalalalalyyyyyysissississississis w w w w w with the JSith the JSith the JSith the JSith the JSith the JSRRRRRR 286 W 286 W 286 W 286 W 286 W 286 Web Coeb Coeb Coeb Coeb Coeb ConnnnnnttttttententententententVVVVVViiiiiieeeeeewwwwwweeeeeerrrrrr PPPPPPoooooorrrrrrttttttlllllleeeeeetttttt

6. Click Next

7. Click Install

8. Click Finish

Page 6: Using portal site analysis with the JSR 286 Web Content Viewer Portlet

UUUUUUssssssininininining pog pog pog pog pog porrrrrrttttttaaaaaallllll s s s s s sitititititite ae ae ae ae ae annnnnnalalalalalalyyyyyysissississississis w w w w w with the JSith the JSith the JSith the JSith the JSith the JSRRRRRR 286 W 286 W 286 W 286 W 286 W 286 Web Coeb Coeb Coeb Coeb Coeb ConnnnnnttttttententententententVVVVVViiiiiieeeeeewwwwwweeeeeerrrrrr PPPPPPoooooorrrrrrttttttlllllleeeeeetttttt

IIIIIInstanstanstanstanstanstallllllllllll AW AW AW AW AW AWSSSSSStatatatatatatstststststs

1. Download AWStats.   http://awstats.sourceforge.net2. Unzip the package into a directory. C:\awstats3. Open a command prompt4. Type “cd /awstats/tools”5. Type “perl awstats_configure.pl”

Page 7: Using portal site analysis with the JSR 286 Web Content Viewer Portlet

UUUUUUssssssininininining pog pog pog pog pog porrrrrrttttttaaaaaallllll s s s s s sitititititite ae ae ae ae ae annnnnnalalalalalalyyyyyysissississississis w w w w w with the JSith the JSith the JSith the JSith the JSith the JSRRRRRR 286 W 286 W 286 W 286 W 286 W 286 Web Coeb Coeb Coeb Coeb Coeb ConnnnnnttttttententententententVVVVVViiiiiieeeeeewwwwwweeeeeerrrrrr PPPPPPoooooorrrrrrttttttlllllleeeeeetttttt

6. Type “none”

7. Type “y”

8. Type “localhost'

Page 8: Using portal site analysis with the JSR 286 Web Content Viewer Portlet

UUUUUUssssssininininining pog pog pog pog pog porrrrrrttttttaaaaaallllll s s s s s sitititititite ae ae ae ae ae annnnnnalalalalalalyyyyyysissississississis w w w w w with the JSith the JSith the JSith the JSith the JSith the JSRRRRRR 286 W 286 W 286 W 286 W 286 W 286 Web Coeb Coeb Coeb Coeb Coeb ConnnnnnttttttententententententVVVVVViiiiiieeeeeewwwwwweeeeeerrrrrr PPPPPPoooooorrrrrrttttttlllllleeeeeetttttt

9. Press ENTER to continue

10. Press Enter to finish

11. Open the C:\awstats\wwwroot\cgi-bin\awstats.localhost.conf file in notepad12. Change the following configuration statements:

LogFile="C:\awstats\tools/logresolvemerge.pl C:\IBM\WebSphere\wp_profile\logs\WebSphere_Portal\sa*.log |"LogFormat=1LogSeparator=" "SiteDomain="localhost"

Page 9: Using portal site analysis with the JSR 286 Web Content Viewer Portlet

UUUUUUssssssininininining pog pog pog pog pog porrrrrrttttttaaaaaallllll s s s s s sitititititite ae ae ae ae ae annnnnnalalalalalalyyyyyysissississississis w w w w w with the JSith the JSith the JSith the JSith the JSith the JSRRRRRR 286 W 286 W 286 W 286 W 286 W 286 Web Coeb Coeb Coeb Coeb Coeb ConnnnnnttttttententententententVVVVVViiiiiieeeeeewwwwwweeeeeerrrrrr PPPPPPoooooorrrrrrttttttlllllleeeeeetttttt

DNSLookup=1AllowToUpdateStatsFromBrowser=0MaxLengthOfShownURL=256

By setting the logfile to grab all sa*.log files it will include rolled over log files when thereports are run

13.Start WebSphere Portal14.Login to WebSphere Portal and navigate to pages containing WCM content using the

JSR286 web content viewer portlet15.Open a command prompt and type “cd /awstats/wwwroot/cgi-bin”16.Create the initial statistics database by typing the following:

“perl awstats.pl -config=localhost -update”

 17.create a reports directory on the c drive18.type “cd /awstats/tools”19. type “perl awstats_buildstaticpages.pl -awstatsprog=C:\awstats\wwwroot\cgi-bin

\awstats.pl -config=localhost -output -dir=c:\reports”

This will generate all reports and update the statistics. This will place the HTML reportsin the c:\reports directory 

Page 10: Using portal site analysis with the JSR 286 Web Content Viewer Portlet

UUUUUUssssssininininining pog pog pog pog pog porrrrrrttttttaaaaaallllll s s s s s sitititititite ae ae ae ae ae annnnnnalalalalalalyyyyyysissississississis w w w w w with the JSith the JSith the JSith the JSith the JSith the JSRRRRRR 286 W 286 W 286 W 286 W 286 W 286 Web Coeb Coeb Coeb Coeb Coeb ConnnnnnttttttententententententVVVVVViiiiiieeeeeewwwwwweeeeeerrrrrr PPPPPPoooooorrrrrrttttttlllllleeeeeetttttt

20.Open the c:\reports\awstats.localhost.html to see the report

21.Click on navigation full list

The new JSR 286 webcontent portlet log will display Site, Site Area and Content

Page 11: Using portal site analysis with the JSR 286 Web Content Viewer Portlet

UUUUUUssssssininininining pog pog pog pog pog porrrrrrttttttaaaaaallllll s s s s s sitititititite ae ae ae ae ae annnnnnalalalalalalyyyyyysissississississis w w w w w with the JSith the JSith the JSith the JSith the JSith the JSRRRRRR 286 W 286 W 286 W 286 W 286 W 286 Web Coeb Coeb Coeb Coeb Coeb ConnnnnnttttttententententententVVVVVViiiiiieeeeeewwwwwweeeeeerrrrrr PPPPPPoooooorrrrrrttttttlllllleeeeeetttttt

This corresponds to the WCM Content by Site Area navigation view in the AuthoringPortlet.

Page 12: Using portal site analysis with the JSR 286 Web Content Viewer Portlet

UUUUUUssssssininininining pog pog pog pog pog porrrrrrttttttaaaaaallllll s s s s s sitititititite ae ae ae ae ae annnnnnalalalalalalyyyyyysissississississis w w w w w with the JSith the JSith the JSith the JSith the JSith the JSRRRRRR 286 W 286 W 286 W 286 W 286 W 286 Web Coeb Coeb Coeb Coeb Coeb ConnnnnnttttttententententententVVVVVViiiiiieeeeeewwwwwweeeeeerrrrrr PPPPPPoooooorrrrrrttttttlllllleeeeeetttttt

OtherOtherOtherOtherOtherOther W W W W W Webebebebebeb S S S S S Statatatatatatitititititisticsticsticsticsticstic A A A A A AnanananananallllllyyyyyyzzzzzzersersersersersersIn this exercise we used Advanced Web Statistics to analyze the site analyzer log files.There are several other products that can be leveraged to analyze the statistics.  A few ofthem are mentioned below.

WebTrends http://www.webtrendslive.com/AboutWebTrends/NewsRoom/NewsRoomArchive/2009/WebTrendsAndIBMPartnerToDeliverAnalyticsDataThroughWebSpherePortalSoftware.aspxCoremetrics http://www.reuters.com/article/pressRelease/idUS143320+27-Feb-2009+MW20090227Omniture http://www.omniture.com/press/682


Recommended