Analytics :- The word analytics means collecting the usage data of user or application and analyzing the data and coming up with metrics and represent them as graphical information.
Portal provides two types of analytics :- Server side analytics and active site analytics
Server side analytics :-
We can enable server side analytics in portal it makes portal log data related to portal application use. Portal has a logging framework to log all portal related data. Business related data can be logged and latter these logs will be taken for analysis. SiteAnalyzerLogger determines what type of need to be logged in portal. All possible data that can be logged are given below.
Step 1 :- We need to enable logging based upon your requirement and above available possible logging cases.{. Location of log file logs/$APPSERVER_NAME/sa.log.}
ipaddress - customerId timestamp
clientHttpMethod urlRequested
protocol (success/error)codes baseContextUrl
browserDetails
Cookies
More samples :-
127.0.0.1 - wpsadmin [02/Nov/2014:00:15:01 +0530] "POST /Page/Z6_CGAH47L00GP790IDB90MNI00N4/Page_Properties HTTP/1.1" 200 154 "" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0" "modified.id=Sun Nov 02 2014 00:14:58 GMT+0530 (India Standard Time);LtpaToken2=lX8zLoJSLmAp12b5caHgCDP8+0Ib++14knprbsHKDu8ws9gNVcvnZUoX3L6TqTko9MxwSldncT9MEn6wPrR0e5Xdo9f/LNDgazguTvG3CfjZOzlaobLKNJzpMUcMTSbJQhPU03ZVPbPZDCebd3LHuAMnoFb8K8SwnGQt89Mpms+tiNbEsFEipNt78CWq/YTgBTye0ri+dS/I0bWm4e+XVuSLSt8uF7lsn9x30KP3h4Ar2tR4pLkIveHFtquKHcJ7xWj+KVhjnLfATXPhSV6TK/t18vfNOwHlS5NpCAe+gv+nu7pNLszCFJWHx4FpzR+yHRdd5epJz8z/W0OyNmtMnyvYl3f6Fyw8Zp/Tka96/4PG73sQslBovHzw59fogCASJsOGjZv8O3P1va2JTioWonKqwNwHD2At0fZmBuvqReiGSPle2G8Nc33IuhmBSYH/4f6Ef/2XU2cRjfmFWAQnIRXNyPiAEdXyk81gLZE97J+amfb00/ScJoM8NtQSsNlxXqgIVs6fLpE0p/a1d9HopDjJfQ/CIpjEQPflxgyIZ13A6+vM8+OAIuU3ViPImdJGTeEZl6DwKLXos7s7q/anHTV/c/a991IJsibLX3D/mk2U4/XY8j1F+EULycz2ElOdXq22QqshRBG8DDeiHu7KSqRkPhAaxncZOQglAibdRPO/MIkZZfRIjwedlSTF2tO8GyWvIeogM6zGM+KWDJ44lg==;JSESSIONID=00002sw7J2Je1qSr_JEvR89pqCN:-1"
127.0.0.1 - wpsadmin [02/Nov/2014:00:15:01 +0530] "POST /Command/Customizer/EditPage?Page=Z6_50MA1O41J001F0AIM9CUQ83006&PageName=CheckAnalyticsLogging HTTP/1.1" 200 154 "" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0" "modified.id=Sun Nov 02 2014 00:14:58 GMT+0530 (India Standard Time);LtpaToken2=lX8zLoJSLmAp12b5caHgCDP8+0Ib++14knprbsHKDu8ws9gNVcvnZUoX3L6TqTko9MxwSldncT9MEn6wPrR0e5Xdo9f/LNDgazguTvG3CfjZOzlaobLKNJzpMUcMTSbJQhPU03ZVPbPZDCebd3LHuAMnoFb8K8SwnGQt89Mpms+tiNbEsFEipNt78CWq/YTgBTye0ri+dS/I0bWm4e+XVuSLSt8uF7lsn9x30KP3h4Ar2tR4pLkIveHFtquKHcJ7xWj+KVhjnLfATXPhSV6TK/t18vfNOwHlS5NpCAe+gv+nu7pNLszCFJWHx4FpzR+yHRdd5epJz8z/W0OyNmtMnyvYl3f6Fyw8Zp/Tka96/4PG73sQslBovHzw59fogCASJsOGjZv8O3P1va2JTioWonKqwNwHD2At0fZmBuvqReiGSPle2G8Nc33IuhmBSYH/4f6Ef/2XU2cRjfmFWAQnIRXNyPiAEdXyk81gLZE97J+amfb00/ScJoM8NtQSsNlxXqgIVs6fLpE0p/a1d9HopDjJfQ/CIpjEQPflxgyIZ13A6+vM8+OAIuU3ViPImdJGTeEZl6DwKLXos7s7q/anHTV/c/a991IJsibLX3D/mk2U4/XY8j1F+EULycz2ElOdXq22QqshRBG8DDeiHu7KSqRkPhAaxncZOQglAibdRPO/MIkZZfRIjwedlSTF2tO8GyWvIeogM6zGM+KWDJ44lg==;JSESSIONID=00002sw7J2Je1qSr_JEvR89pqCN:-1"
Portal provides two types of analytics :- Server side analytics and active site analytics
Server side analytics :-
We can enable server side analytics in portal it makes portal log data related to portal application use. Portal has a logging framework to log all portal related data. Business related data can be logged and latter these logs will be taken for analysis. SiteAnalyzerLogger determines what type of need to be logged in portal. All possible data that can be logged are given below.
- Page management, such as creating, reading, updating, deleting pages.
- Requests of pages by users.
- Requests of portlets by users.
- Session activities, such as login, logout, time out, login failed.
- User management actions, such as creating, reading, updating, and deleting users and groups.
Step 1 :- We need to enable logging based upon your requirement and above available possible logging cases.{. Location of log file logs/$APPSERVER_NAME/sa.log.}
Table 1. Description and activity logged for each available logger
WebSphere® Portal Express® Server Analysis Logger | Description and Activity Logged |
---|---|
SiteAnalyzerSessionLogger.isLogging | HTTP requests that include the URLs:/Command/Login/Command/Logout |
SiteAnalyzerUserManagementLogger.isLogging | HTTP requests that include the URLs:/Command/UserManagement/CreateUser/Command/UserManagement /DeleteUser/Command/UserManagement/CreateGroup/Command /UserManagement/DeleteGroup |
SiteAnalyzerPageLogger.isLogging | HTTP requests that include the URLs:/Page/*/Command/Customizer/CreatePage /Command/Customizer/EditPage/Command/Customizer/DeletePage |
SiteAnalyzerPortletLogger.isLogging | HTTP requests that include the URLs:/Portlet/* |
SiteAnalyzerPortletActionLogger.isLogging | HTTP requests that include the URLs:/PortletAction/* |
SiteAnalyzerErrorLogger.isLogging | HTTP requests that include the URLs:/Error/Portlet/Error/PageThe referrer field points to a portlet name or a page name. Examples of such referrer fields are:http://your.server.name/Portlet/1/PortletNamehttp://your.server.name/Page/1/PageName |
SiteAnalyzerApplicationActionLogger.isLogging | HTTP requests that include the URLs:/ApplicationAction/* |
SiteAnalyzerJSRPortletLogger.isLogging | web content viewer |
Step2 :- Change the value of SiteAnalyzerPageLogger.isLogging to true for logging all page management related data. Save value and restart portal server.
Step 3 :- Now try creating a new page or delete an existing page and then open file in this location [wp_profile_root]]/logs/app_server_name/sa_date_time.log] and start reading it.
Sample log and its explanation:-
9.37.3.88 - customer2 [10/Apr/2002:21:33:16 +0000]
"GET /Portlet/146/Welcome_Portlet?PortletPID=146&PortletMode=View&PortletState=Normal
HTTP/1.1" 200 -1 "http://myserver.company.com/Page/110/Welcome"
"Firefox/2.0 (compatible; MSIE 5.5; Windows NT 4.0)"
"JSESSIONID=OXDFAPVR4SXYZOIHSLVGA2Y"
clientHttpMethod urlRequested
protocol (success/error)codes baseContextUrl
browserDetails
Cookies
More samples :-
127.0.0.1 - wpsadmin [02/Nov/2014:00:15:01 +0530] "POST /Page/Z6_CGAH47L00GP790IDB90MNI00N4/Page_Properties HTTP/1.1" 200 154 "" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0" "modified.id=Sun Nov 02 2014 00:14:58 GMT+0530 (India Standard Time);LtpaToken2=lX8zLoJSLmAp12b5caHgCDP8+0Ib++14knprbsHKDu8ws9gNVcvnZUoX3L6TqTko9MxwSldncT9MEn6wPrR0e5Xdo9f/LNDgazguTvG3CfjZOzlaobLKNJzpMUcMTSbJQhPU03ZVPbPZDCebd3LHuAMnoFb8K8SwnGQt89Mpms+tiNbEsFEipNt78CWq/YTgBTye0ri+dS/I0bWm4e+XVuSLSt8uF7lsn9x30KP3h4Ar2tR4pLkIveHFtquKHcJ7xWj+KVhjnLfATXPhSV6TK/t18vfNOwHlS5NpCAe+gv+nu7pNLszCFJWHx4FpzR+yHRdd5epJz8z/W0OyNmtMnyvYl3f6Fyw8Zp/Tka96/4PG73sQslBovHzw59fogCASJsOGjZv8O3P1va2JTioWonKqwNwHD2At0fZmBuvqReiGSPle2G8Nc33IuhmBSYH/4f6Ef/2XU2cRjfmFWAQnIRXNyPiAEdXyk81gLZE97J+amfb00/ScJoM8NtQSsNlxXqgIVs6fLpE0p/a1d9HopDjJfQ/CIpjEQPflxgyIZ13A6+vM8+OAIuU3ViPImdJGTeEZl6DwKLXos7s7q/anHTV/c/a991IJsibLX3D/mk2U4/XY8j1F+EULycz2ElOdXq22QqshRBG8DDeiHu7KSqRkPhAaxncZOQglAibdRPO/MIkZZfRIjwedlSTF2tO8GyWvIeogM6zGM+KWDJ44lg==;JSESSIONID=00002sw7J2Je1qSr_JEvR89pqCN:-1"
127.0.0.1 - wpsadmin [02/Nov/2014:00:15:01 +0530] "POST /Command/Customizer/EditPage?Page=Z6_50MA1O41J001F0AIM9CUQ83006&PageName=CheckAnalyticsLogging HTTP/1.1" 200 154 "" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0" "modified.id=Sun Nov 02 2014 00:14:58 GMT+0530 (India Standard Time);LtpaToken2=lX8zLoJSLmAp12b5caHgCDP8+0Ib++14knprbsHKDu8ws9gNVcvnZUoX3L6TqTko9MxwSldncT9MEn6wPrR0e5Xdo9f/LNDgazguTvG3CfjZOzlaobLKNJzpMUcMTSbJQhPU03ZVPbPZDCebd3LHuAMnoFb8K8SwnGQt89Mpms+tiNbEsFEipNt78CWq/YTgBTye0ri+dS/I0bWm4e+XVuSLSt8uF7lsn9x30KP3h4Ar2tR4pLkIveHFtquKHcJ7xWj+KVhjnLfATXPhSV6TK/t18vfNOwHlS5NpCAe+gv+nu7pNLszCFJWHx4FpzR+yHRdd5epJz8z/W0OyNmtMnyvYl3f6Fyw8Zp/Tka96/4PG73sQslBovHzw59fogCASJsOGjZv8O3P1va2JTioWonKqwNwHD2At0fZmBuvqReiGSPle2G8Nc33IuhmBSYH/4f6Ef/2XU2cRjfmFWAQnIRXNyPiAEdXyk81gLZE97J+amfb00/ScJoM8NtQSsNlxXqgIVs6fLpE0p/a1d9HopDjJfQ/CIpjEQPflxgyIZ13A6+vM8+OAIuU3ViPImdJGTeEZl6DwKLXos7s7q/anHTV/c/a991IJsibLX3D/mk2U4/XY8j1F+EULycz2ElOdXq22QqshRBG8DDeiHu7KSqRkPhAaxncZOQglAibdRPO/MIkZZfRIjwedlSTF2tO8GyWvIeogM6zGM+KWDJ44lg==;JSESSIONID=00002sw7J2Je1qSr_JEvR89pqCN:-1"
No comments:
Post a Comment