Here is what the report does. I didn't really explain in detail. We use the "User Report" renamed as our "Collection Summary" for digital collections we display on our web site. I achieve this by replacing the - - in the user field with the internal name for our collections. Our internal name replaces "- -" in the logfile which is the field used for the User Report. Once I run the set column perl script against a month's worth of access_log* files, my access files look like this. This is really quite ingenious, of which I give my old boss credit for the perl script.

BEFORE running perl script:

66.249.65.203 - - [01/Aug/2007:03:17:23 -0400] "GET /gsdl/cgi-bin/library?e=d-0
00-00---0bren--00-0-0--0prompt-10---4------0-1l--1-en-600---20-home---00031-001
-0-0utfZz-8-00&a=d&c=bren&cl=CL2.7.20.pr HTTP/1.1" 200 23103

AFTER -- "bren" is put in the filed used by the User Report:

66.249.65.203 - bren [01/Aug/2007:03:17:23 -0400] "GET /gsdl/cgi-bin/library?e=d
-000-00---0bren--00-0-0--0prompt-10---4------0-1l--1-en-600---20-home---00031-00
1-0-0utfZz-8-00&a=d&c=bren&cl=CL2.7.20.pr HTTP/1.1" 200 23103

I run the report against this new log file I've created. All the "collection names", ie, bren, can then be counted. USEROUTPUTALIAS describes the collection name. I use other ALIAS statements for things I don't recall right now.

USEROUTPUTALIAS bren    "GM American National Theatre & Academy Archives"
FILEALIAS /dbdata/bren/*                        bren
FILEALIAS /dbdata/bren/display/*                bren
REQALIAS /gsdl/collect/bren/bren.shtml          bren.shtml
FILEALIAS /gsdl/cgi-bin/library*bren*           bren
REQOUTPUTALIAS *bren*   "GM American National Theatre & Academy Archives"

My boss likes to keep the new LOGFILES I create, and the original access_log files for the month, which the script gzips and moves to a different location.

Every month I keep one report in one location, then the monthly files so aptly named in another location viewable by the schools. In order for this to be run without intervention on my part, I rename the files, ie, on Sept 1 to dcpc.html and dcpc.png in one directory. The archived files, 20070831.html and 20070831.png are in a different directory and stay there forever. The dcpc.html file is overwritten every month. The archives are kept.

Like I said, I fixed over the weekend finally. If anyone is interested in looking at our digital collections, most areas are open to the public.

http://www.aladin.wrlc.org/dl/

Treasure Chest of Fun & Fact is always interesting
http://www.aladin.wrlc.org/gsdl/collect/treasure/treasure.shtml

I put our archives on our web server so you can take a look. I didn't copy over the images directory -- so you'll be seeing +++++ signs where there are usually bar charts. As you can see, we go back several years.

http://www.wrlc.org/dcpc/archive/dcpc/

And you're right, if it ain't broke -- which is why I'm keeping the latest version of my script. It'll now run without any intervention whatsoever !

Jeanne



Aengus wrote:
On Tuesday, August 21, 2007 9:02 AM [EDT],
Jeanne Ilchuk <[EMAIL PROTECTED]> wrote:

Because I run a report every month and it's linked on a web site as a
monthly report.  At the end of the month, it's called (ie)
20070731.html and 20070731.png.  I have a huge shell script that runs
the report, gunzips the access*logs* and the LOGFILE I create.  I use
a perl script to get names into the user field in the log file. Everything was working but I had to manually change user.png to
date.png inside the date.html file.

If it's not broke, you don't need to fix it, but it sounds like you're doing a bunch of work that you don't need to do. Unless you need the usernames in the logfile for some other purpose, you could just use a list of USERALIAS commands, and then you wouldn't need to unzip the logs either, because Analog can handle compressed logfiles.

I'm still not entirely sure that I understand what you were trying to do - I would have thought that LOCALCHARTDIR would have sufficed. It's main purpose is to allow you to add a prefix to the .png files, so that you can have multiple reports, but uniquely label the associated charts.

Aengus


+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Reply via email to