Re: [greenstone-users] Logging user activity

From schild
DateMon, 11 Jul 2005 10:56:19 +0200
Subject Re: [greenstone-users] Logging user activity
In-Reply-To (42D18A72-3090501-cs-waikato-ac-nz)
Katherine,

thanks for this valuable information, I guess you saved me a lot of
time. Now that I know how to start, I have to admit, that I am only a
beginner in programing perl. If you could send me a snippet or the whole
of the perl script that does the evaluation of the cgi-args of the
niupepa collection for demonstration purposes (or tell me where to get
it) that would help me tremendously. I could probably figure out how you
do the information extraction with perl and start to write an
appropriate script for my purposes...

Thanks again,

Axel

Katherine Don schrieb:

>Hi Axel
>
>We have done analysis like this on our niupepa (Maori newspaper)
>collection. We use the standard Greenstone usage.txt file, and do the
>session analysis using Perl scripts.
>
>We track sessions using cookies. If the user doesn't have cookies turned
>on, then its hard to get session info for them.
>
>The usage.txt entry looks like
>/cgi-bin/library 130.217.240.32 [Mon Jul 11 08:34:25 +1200 2005] (a=d,
>b=0, b1=0
>, b2=0, bc1aboutdesc=, bc1cfgchanged=0, bc1clone=0, bc1clonechanged=0,
>bc1clonec
>ol=, bc1contactemail=, bc1dirname=, bc1dodelete=0, bc1econf=0,
>bc1esrce=0, bc1fr
>omsrce=0, bc1fullname=, bc1infochanged=0, bc1input=, bc1inputnum=3,
>bc1inputtype
>=, bc1tmp=, bcp=, beu=, bft=, bnu=, bp=, bt=0, c=kjdon-pooh, cc=, ccp=0,
>ccs=0,
>cfgfile=, cl=CL2, cm=, cq2=, ct=0, d=, de=, debc=0, dm=, ds=, dsbc=0,
>e=d-000-00
>---0kjdonZz-pooh--00-0-0--0prompt-10---3----dtx--0-1l--1-en-50---20-about-the--0
>0031-001-0-0utfZz-8-00, el=prompt, er=, f=0, fc=1, fqa=0, fqc=, fqf=,
>fqk=, fqn=
>3, fqs=, fqv=, g=, gc=0, gt=0, h=dtx, h2=, hd=0, hl=1, hp=, hs=0, ifl=,
>il=l, j=
>, j2=, k=1, ky=, l=en, m=50, n=, n2=, nl=, o=20, p=about, pc=, pfd=0,
>pfe=0, pfl
>=0, pld=10, ple=10, pll=10, ppnum=0, pptext=, pw=, pxml=0, q=the, q2=,
>qb=0, qf=
>0, qt=0, qto=3, r=1, rd=0, s=0, st=1, t=0, u=0, ua=, uan=, ug=,
>uma=listusers, u
>mc=, umnpw1=, umnpw2=, umpw=, umug=, umun=, umus=, un=, us=invalid, v=0,
>w=utf-8
>, x=0, xx=0, z=130.217.240.32-1121027663) "Mozilla/5.0 (X11; U; Linux
>i686; en-U
>S; rv:1.7.8) Gecko/20050516"
>
>The z argument is the user id, and we use that to combine hits into
>sessions - we assume that two hits with the same z arg are in the same
>session if they are less than 30 minutes apart.
>
>You can work out what the user is doing by looking at a few basic arguments:
>a: action (p=page, q=search, d=document or classifier)
>p: if page action, what type of page (home page, about page etc)
>d: document id
>q: query string
>
>etc. If you go to the admin page of your greenstone installation
>(.../library?a=status&p=frameset) adn click on the arguments link, you
>can see a list of all the arguments and their names (which may or may
>not be helpful).
>
>I don't think you can track unsuccessful search events this way - unless
>the definition of unsuccessful is that the user never acessed any
>documents following the search.
>
>Hope this helps,
>Katherine
>
>schild wrote:
>
>
>>Following the posting of Gregory,
>>
>>I am also interested in logging user activities (for statistical
>>evaluation) such as session length, number of search actions per
>>session, number of unsuccessful search actions carried out, number of
>>accesses to specific documents etc. Where would I have to start for the
>>implementation of these features?
>>
>>Tanks in advance,
>>
>>Axel Schild
>>
>>Gregory S. Williamson schrieb:
>>
>>
>>
>>
>>>I have set up a greenstone instance (2.6) on a linux box and have it running satisfactorily. [soon to be annpunced to the world]
>>>
>>>We would very much like to be able to see what material is being accessed, but enabling the logging seems to enable only certain events (running the library executable from a command line, for instance). It doesn't seem to pick up anything about what users are doing in terms of browsing.
>>>
>>>These are snippets from the gsdlsite config file:
>>># Set logcgiargs to true to keep a log of usage information in
>>># $GSDLHOME/etc/usage.txt.
>>>logcgiargs true
>>>
>>># Set usecookies to true to use cookies to identify users (cookie
>>># information will be written to the usage log if logcgiargs is
>>># true).
>>>usecookies true
>>><...>
>>>LogEvents AllEvents
>>>
>>>====
>>>
>>>Reading the documentation does imply that only collector actions are logged, which is consistant (I think) with what I am seeing, so then the question would be, is there any way to log user activity, e.g. what documents are being accessed ? DOes the newest Greestone support this ?
>>>
>>>Thanks for your time,
>>>
>>>Greg Williamson
>>>
>>>
>>>
>>>_______________________________________________
>>>greenstone-users mailing list
>>>greenstone-users@list.scms.waikato.ac.nz
>>>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>>
>>>
>>>
>>>
>>
>>
>>


--
----------------------------------------------

Dipl.-Ing. Axel Schild
Automatisierungstechnik und Prozessinformatik
Ruhr-Universitaet Bochum IC-3/140
D-44780 Bochum, Germany

Tel: +49 234 32 25203
Fax: +49 234 32 14101
E-mail: schild@atp.rub.de