
jeremy at 7simplemachines
Aug 13, 2008, 10:12 AM
Post #11 of 11
(1779 views)
Permalink
|
If you have separate log files the most efficient way is to specify to Analog which log files to read for the month - probably through shell commands, but possibly through Analog's %Y and %M operators for the LOGFILE command. See http://analog.cx/docs/logfile.html for details. If it's one log file or the files overlap month boundaries you can use the FROM and TO commands to limit the time period. FROM -00-0001 TO -00-0031 See http://analog.cx/docs/include.html#FROMTO for details. -- Jeremy Wadsack Seven Simple Machines ________________________________ From: analog-help-bounces [at] lists [mailto:analog-help-bounces [at] lists] On Behalf Of Brian Clanton Sent: Wednesday, August 13, 2008 9:55 AM To: 'Support for analog web log analyzer' Subject: RE: [analog-help] Remote and local statistics Just want to tip my hat and say thanks all who gave input on this issue. After just doing the conversion from 301 to 200 response code in the log file, I didnt' have to do anything else. The User Report, which was already on, was able to recognise the local and proxy users in the log entry and generate a graph and my REQUEST REPORT aka DATABASES ACCESSED reflects both local and remote access. Ya Hoo! http://proxy.dupagels.lib.il.us/ob_proxyStats.html Now, all I need to do is run each report for only the previous month. The current time frame is: Analysed requests from Tue-15-Jul-2008 18:07 to Wed-13-Aug-2008 10:22 (28.68 days). which is the begining and end of the log file. I've gone over the docs a couple of times, but I can't find any commands that alter this time frame. Is this possible? ________________________________ From: analog-help-bounces [at] lists [mailto:analog-help-bounces [at] lists] On Behalf Of Jeremy Wadsack Sent: Tuesday, August 12, 2008 6:32 PM To: Support for analog web log analyzer Subject: RE: [analog-help] Remote and local statistics Try this: * Covert 301 request to 200 (you can "inline" the sed command using the UNCOMPRESS command<http://analog.cx/docs/logfile.html#UNCOMPRESS> if you want) * USER ON * USERALIAS proxy remote You should then get something like this: Users (Go To: Top<http://proxy.dupagels.lib.il.us/ob_proxyStats.html#Top> | Monthly Report<http://proxy.dupagels.lib.il.us/ob_proxyStats.html#month> | Remote Users | Local Users<http://proxy.dupagels.lib.il.us/ob_proxyStats.html#rediuser> | Databases Accessed<http://proxy.dupagels.lib.il.us/ob_proxyStats.html#req>) This report lists remote users who requested online resources, if users have been authenticated. Listing remote users, sorted by the number of requests. reqs user 212 remote 186 local -- Jeremy Wadsack Seven Simple Machines ________________________________ From: analog-help-bounces [at] lists [mailto:analog-help-bounces [at] lists] On Behalf Of Brian Clanton Sent: Tuesday, August 12, 2008 3:56 PM To: 'Support for analog web log analyzer' Subject: RE: [analog-help] Remote and local statistics My problem is that the REQUEST REPORT does not include the redirected logs (301). Libraries want the following information about their online databases: - How many local users are using the resources - How many remote users are using the resources - How much are the resources being used (both local and remote combined) The REQUEST REPORT does not include the local "redirected" requests. The REDIRECTED REPORT will give a total of "requests" made, but not what databases were accessed. Example: http://proxy.dupagels.lib.il.us/ob_proxyStats.html What about this idea...... What if I change the response codes in the log files from redirected to successful (301 to 200) which will give me all local and proxy requests in the REQUEST REPORT. Then if I want to differentiate between how many local requests as opposed to proxy requests, I can somhow use the first part of the log entery (proxy or local) local 66.158.45.2 - - [15/Jul/2008:18:08:00 -0600] "HEAD http://firstsearch.oclc.org/FSIP HTTP/1.1" 301 485 I don't necessarily need a graph for local and proxy users, just how many requests per the designated time period. The problem is, I'm not sure if there is a report that I can use from the first part of this log entry. My analog logformat is this: APACHELOGFORMAT (%u %h %l %w %t "%r" %s %b) APACHELOGFORMAT (%u %h %w %l %w %t "%r" %s %b) APACHELOGFORMAT (%u %w %h %w %l %w %t "%r" %s %b) I have to have the extra formats because for some reason certain log entries have extra spacing and are recognised as corrupted. Anyway, is it possible to generate a report based on the %u log variable to show local and remote usage? > -----Original Message----- > From: analog-help-bounces [at] lists > [mailto:analog-help-bounces [at] lists] On Behalf Of > Stephen Turner > Sent: Tuesday, August 12, 2008 5:42 PM > To: Support for analog web log analyzer > Subject: Re: [analog-help] Remote and local statistics > > 2008/8/12 Brian Clanton <bclanton [at] dupagels>: > > > > The local logs are library patrons accessing resources from > within the > > library. Proxy requests are patrons accessing the resources from > > outside the library. > > > > I use the User Reports to show the remote patron requests total and > > the REDIRECTED USER report to show the requests total for > local users. > > > > The problem is that the proxy server (Ezproxy) redirects the local > > access requests (301) to save on bandwidth and only > "proxies" the remote requests. > > Therefore Analog only shows stats for the "successful" proxied > > requests in the other subsequent reports, namely the REQUEST REPORT. > > > > Is there a way to configure Analog to consider all requests, both > > local and proxy, as legitimate requests so the REQUEST REPORT will > > show totals for both local and remote patrons as well still have > > separate reports showing total remote requests (User > Report) and total > > local requests (REDIRECTED USER REPORT)for a given time period? > > > > I think I understand now. There is no way to treat 301 as a > success (without preprocessing the log), but you can look at > the Redirection Report which gives the same information as > the Request Report, but for redirects. > > -- > Stephen Turner > +------------------------------------------------------------- > ---------- > +- > | 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 > +------------------------------------------------------------- > ---------- > +- >
|