Luminis Statistics from Uportal

February 23, 2007

Note: this is a reposting of an article I wrote on LumDev.net April 12, 2005. I am publishing it here because LumDev is currently experiencing technical difficulties. I have not updated this post in any way to reflect new versions or practices. It is still the 2005 article in every way. I would highly recommend reading that article’s commentary if LumDev.net is available when you are reading this.

As many of us who use and administer Luminis know, the stats are quite inadequate straight out of the box. There are some improvements in III.2, but they are still not enough. Some posts on here have suggested some other solutions that gain some ground. I have been instead researching Uportal’s build in StatsRecorderFactory support. After a lot of trouble initially getting this enabled, Grace Francisco at SCT support was finally able to get me what I was missing to try this out. The following is an account of how to enable these stats outlining what I like and don’t like about this solution. In short this is useful, but short of perfect.

1) cd CP_WEBINF/config
2) jar xf ../lib/uPortal.jar properties/portal.properties –> this actually will get picked up by our classpath, and much easier than editing the file, and rejarring it back to uPortal.jar
3) cd properties
4) edit portal.properties
5) change

#org.jasig.portal.services.stats.StatsRecorderFactory.implementation=org.jasig.portal.services.stats.DoNothingStatsRecorderFactory
to
org.jasig.portal.services.stats.StatsRecorderFactory.implementation=org.jasig.portal.services.stats.LoggingStatsRecorderFactory

6) turn the stat recorder settings ON, if you scroll down a few lines you can choose which ones you want.

7) bounce the webserver:
CP_ROOT/bin/rc/70-webserver stop
CP_ROOT/bin/rc/70-webserver start

8) add logging settings to CP_WEBINF/config/cplog4j.properties
# - STATS-RECORDER
log4j.logger.uportal=INFO, stats
log4j.appender.stats=org.apache.log4j.RollingFileAppender
log4j.appender.stats.File=${util.logservice.log4j.directory}/stats.log
log4j.appender.stats.MaxFileSize=10000KB
log4j.appender.stats.MaxBackupIndex=10
log4j.appender.stats.layout=org.apache.log4j.PatternLayout
log4j.appender.stats.layout.ConversionPattern=[%d{ISO8601}] %m%n

These are some of the log entries created in stats.log:
[2005-03-18 17:10:11,828] [INFO] WebServlet [uportal]: STATS-RECORDER: (cpadmin) logged in successfully at Fri Mar 18 17:10:11 MST 2005
[2005-03-18 17:10:30,937] [INFO] WebServlet [uportal]: STATS-RECORDER: Channel [E-mail Channel, 221, u11l1n13] was rendered in layout 1 by (cpadmin) at Fri Mar 18 17:10:30 MST 2005
[2005-03-18 17:10:30,937] [INFO] WebServlet [uportal]: STATS-RECORDER: Channel [Personal Announcements, 210, u11l1n14] was rendered in layout 1 by (cpadmin) at Fri Mar 18 17:10:30 MST 2005
[2005-03-18 17:10:30,937] [INFO] WebServlet [uportal]: STATS-RECORDER: Channel [Campus Announcements, 211, u11l1n15] was rendered in layout 1 by (cpadmin) at Fri Mar 18 17:10:30 MST 2005
[2005-03-18 17:10:30,937] [INFO] WebServlet [uportal]: STATS-RECORDER: Channel [My Headlines, 212, u11l1n17] was rendered in layout 1 by (cpadmin) at Fri Mar
[2005-03-18 17:12:43,015] [INFO] WebServlet [uportal]: STATS-RECORDER: Session destroyed for (cpadmin) at Fri Mar 18 17:12:43 MST 2005

The first major limitation of this is that it is logging all the stats in a file. So in my instance I am running a cron’d process hourly to go in and pick up the stats files, parse them, and load them into Oracle. My table structure is attached so that you can see the sort of info I’m am acquiring. The script I’ve written is in PHP and if anyone is really interested, I could share that as well. In a perfect world, there would be a Stats Recorder for Oracle, so that it could go straight in without the extra steps. Someone has written RDBMStatsRecorder which hits Postgres. That may be a good base for building an Oracle version. (Google search RDMBStatsRecorder to find out more).

The second limitation is that it is logging all the STATS-RECORDER entries into the cp.log as well as stats.log. This makes for a very dirty cp.log. Someone who knows more about log4j may be able to explain how to resolve this. I unfortunately do not…

The third limitation is that there is not a way to track what tabs are being accessed. This is an important statistic for a bunch of reasons. I reported this desire to support and they entered Enhancement Request #26422 on my behalf. Another option would be to try and glean these from the webserver logs, but of course then you would not have a username and associated role to tie to these stats, so I’m not certain how useful that might be… Better than nothing though.

You can see my PHP code here: http://my.plymouth.edu:81/code/stats.phps

cplog4j, java, luminis, PHP, statistics, stats, stats-recorder, sungard, sungardhe, uportal

Tags: , , , , , , , , ,

Related:


Comments

3 Responses to “Luminis Statistics from Uportal”

  1. Tim Archer on April 10th, 2007 12:17 am

    I continue to be amazed that a supposedly enterprise product like Luminis cant tell you who’s accessing what, and when. I dont know what these major vendors always overlook the logging and statistical analysis aspects of their applications, especially sinces its SO easy to write! Just build a framework utility that every page load calls logging something intelligable somewhere. If Luminus runs on Oracle, why not push the statistics into a table that anyone can easily write queries and reports off of!

  2. zbtirrell on April 10th, 2007 8:18 pm

    Yeah, aspects of that are being accomplished by the underlying uPortal, but it’s not easy to access, therefor the write-up above.

    Definitely this should be base functionality. That an enterprise product with this price tag should have.

  3. Bill on March 20th, 2008 11:16 am

    Is your php source still available? It looks like the server that was serving it is down? thanks.

Got something to say?





User contributed tags: venom layouts (195) - 300 the movie layouts (63) - venom layout (40) - 300 layouts (36) - t (32) - 300 movie layouts (26) - spiderman3 .jar (23) - 300 movie layout (21) - 300 THE MOVIE LAYOUT (19) - spiderman3.JAR (15) - "SpiderMan 2 jar" (12) - spiderman venom layouts (11) - www. Google maps .pl (10) - luminis uportal (9) - spiderman 2.jar (9) - spiderman statistics (9) - google search blog... (8) - log4j stats (8) - redtube org (8) - uportal (7) - spiderman 3 venom layouts (7) - spiderman layout (7) - Spiderman 3 layouts (7) - Spider-Man 2 jar (7) - 300 movie stats (7) - f (7) - nosheep net (6) - uportal luminis (6) - log4j statistics (6) - spiderman2.jar (6) - 300 movie statistics (6) - spider man2 JAR (5) - movie 300 layouts (5) - Spiderman stats (5) - the 300 movie layouts (5) - spider-man 2.jar (5) - Spiderman2 jar (5) - spiderman3 layouts (5) - www spider man1 2 3 com (5) - www.google.maps.pl (4) - www spiderman 3 com n (4) - spiderman layouts (4) - Galactus layouts (4) - luminus uportal (4) - redtube (4) - luminis stats (4) - spiderman venom layout (4) - sungard luminus (4) - portal properties and luminis (4) - www spiderman 3 .com (3) - Luminis php (3) - the movie 300 layout (3) - oracle luminis (3) - luminis and oracle (3) - stats for sandman from spiderman 3 (3) - luminis channel statistics (3) - uportal logging (3) - spiderman 3 layout (3) - www spiderman-layouts (3) - luminis java (3) - layouts 300 (3) - luminis cpadmin (3) - venom layout, spiderman (3) - uportal vs oracle (3) - THE MOVIE 300 LAYOUTS (3) - www.spiderman 1,2,3.com (3) - oracle cron (3) - redtube statistic (3) - luminis usage statistics (3) - layouts for the movie 300 (3) - layouts 300 the movie (3) - 300.themovie (2) - luminus portal (2) - layouts spiderman3 (2) - luminis role (2) - Sungard Luminus portal (2) - Luminis can you tell who posted campus announcements? (2) - luminus vs uportal (2) - successful implementation of sungard luminus product (2) - MOVIE LAYOUTS 300 (2) - dota stat recorder (2) - 300 oracle layouts (2) - www spiderman 1 (2) - layouts from 300 (2) - spiderman java (2) - spider-man 3 themovie (2) - ironman the movie layouts (2) - uportal statistics (2) - all (2) - www spiderman cheat code for x-box (2) - venom movie layouts (2) - log4j stat (2) - www spiderman layout (2) - layouts for 300 (2) - WWW. SPIDER MAN1 (2) - luminis oracle portal (2) - uportal hack (2) - uportal stats recorder (2) - luminis (2) - Spiderman3 Venom layouts (2) - stats recorder uportal (2) - luminis cp.log (2) - uportal stats (2) - The 300 layouts (2) - related:redtube (2) - uportal statistics channel (2) - www.spiderman layouts (2) - php dota stats (2) - spiderman/venom layouts (2) - uportal logs (2) - venom from spiderman 3 layouts (2) - uportal channel files (2) - Luminis usage Reports (2) - spiderman and venom layout (2) - the 300 movie layout (2) - sunguard statistics (2) - venom background code (2) - 300 the movie statistics (2) - luminis java code (2) - venom layouts codes (2) - uportal vs luminus (2) - luminis logs (2) - spiderman and venom layouts (2) - 300 the movie stats (1) - movie "300" statistics (1) - layouts of the movie 300 (1) - uportal game channel (1) - cron log4j (1) - Luminus jar files (1) - 300 oracle (1) - luminis portal nosheep (1) - add jar to luminis classpath (1) - luminis portal technical difficulties (1) - cplog4j.properties (1) - log4j statistics ConversionPattern (1) - luminus oracle (1) - uportal session record (1) - Venom Spiderman 3 layouts (1) - luminis uportal sites (1) - hogzilla recorder (1) - related%3aredtube%2ecom%2f (1) - uportal z series (1) - uPortal vs (1) - stat recorder uPortal (1) - 300 .bin torrent movie (1) - spiderman 3 layouts, venom (1) - uportal luminus (1) - layouts of venom (1) - sheep background (1) - dota hero stat gain statistics (1) -