Hi Claudia,
  Yes, I have two log files in the dspace/log folder
   
  Dspace.log and checker.log
   
  Dspace.log has all the logs like, the emails ids of the persons logged in and 
the items viewed..e.t.c  I think the stat-general is not reading the dsapce log 
file.
   
  I have attached the dstat.cfg  and stat-general files.
   
  Please let me know if I am missing anything.
   
  Thnak you for your patience
  Nina
   


Claudia Jürgen <[EMAIL PROTECTED]> wrote:   Hello Nina,

did you follow the instructions in docs/configure.html#statistics?

Do you got log files in your [dspace-install]/log?


To enable statistics

1. change all the perl skripts in your
[dspace-source]/bin
* stat-general
* stat-initial
* stat-monthly
* stat-report-general
* stat-report-initial
* stat-report-monthly

Especially change these lines:

$dsrun = "/dspace/bin/dsrun";
$in_directory = "/dspace/log/";
$out_directory = "/dspace/reports/";

Supposing you got DSpace installed in C:\dspace, you should have 
something like this:

$dsrun = "C:/dspace/bin/dsrun.bat";
$in_directory = "C:/dspace/log/";
$out_directory = "C:/dspace/reports/";


2. run ant init_configs

3. run
C:\dspace\bin\stat-general
C:\dspace\bin\stat-monthly
C:\dspace\bin\stat-report-general
C:\dspace\bin\stat-report-monthly


Claudia


nina joseph schrieb:
> Hi Claudia, 
> Yes, I have made the following changes to my dstat config file
> 
> 
> # the log directory to be analyzed
> dspace.log=/dspace/log/
> 
> 
> # the name and url of the service being reported on
> host.name=localhost
> host.url=http://localhost:8080/dspace
> 
> and then from dspace/bin dorectory I have run those perl scripts.
> 
> Please let me know what I am missing
> 
> Thank you
> NIna
> 
> 
> 
> 
> Claudia Jürgen wrote: Hi Nina,
> 
> it seems as if your log files are not evaluated. The item count is done 
> via the database.
> 
> Did you change dstat to point to the directory where the log files 
> reside (see prior mail, you had an URL there not a directory)?
> 
> Claudia
> 
> 
> 
> nina joseph schrieb:
>> Hi Claudia,
>> Thank you for the information. I am able to get statistical reports page for 
>> my dspace. But I am getting zero counts for the entire category except for 
>> the items archived. Do I have to set something to get other information’s 
>> like User logins, Items viewed and words searched e.t.c
>>
>> Thank you
>> Nina
>>
>>
>>
>> Claudia Jürgen wrote: Hi Nina,
>>
>>
>> first, please use the dspace-mailing lists and not my private address 
>> for dspace related questions. Otherwise people with the same questions 
>> are not able to follow up the threads.
>>
>>> # the log directory to be analysed
>>> http://localhost:8080/dspace
>> this line refers to the directory where the logs of the dspace 
>> installation are stored.
>>
>>
>>
>>> And then 
>>> I typed the following commands
>>> C:\dspce\bin >dsrun stat-initial
>>>
>>> But it gives classnot found error. Is it because I have dspace on Windows 
>>> XP operating system? 
>> Naturally these are perl scripts no java classes. As you can see in the 
>> documentation, they are simply invoked via [dspace]/bin/name, provided 
>> that you got perl installed.
>>
>> exerpt from dspace docs
>> _________________________________________________________
>>
>> # Run stat analyses
>> [dspace]/bin/stat-general
>> [dspace]/bin/stat-monthly
>> [dspace]/bin/stat-report-general
>> [dspace]/bin/stat-report-monthly
>>
>> Note that Perl needs to be installed in order to run the statistical 
>> reports.
>> __________________________________________________________
>>
>>
>>
>> Claudia
>>
>>
>>
>>
>>> Thank you
>>> NIna
>>>
>>>
>>>
>>>
>>> Claudia Juergen wrote: Hi Nina,
>>>
>>> the base documentation for the statistical reports resides in the
>>> documentation:
>>> dspace/docs/configure.html#statistics
>>>
>>> For further information run:
>>> [dspace]/bin/dsrun org.dspace.app.statistics.LogAnalyser -help
>>> [dspace]/bin/dsrun org.dspace.app.statistics.ReportGenerator -help
>>>
>>>
>>> You must edit the scripts in [dspace]/bin
>>> stat-general
>>> stat-initial
>>> stat-monthly
>>> stat-report-general
>>> stat-report-initial
>>> stat-report-monthly
>>>
>>> In order that statistical reports are generated regularly and thus kept up
>>> to date you should set up the following cron jobs:
>>>
>>> # Run stat analyses
>>> 0 1 * * * [dspace]/bin/stat-general
>>> 0 1 * * * [dspace]/bin/stat-monthly
>>> 0 2 * * * [dspace]/bin/stat-report-general
>>> 0 2 * * * [dspace]/bin/stat-report-monthly
>>>
>>>
>>> Claudia
>>>
>>>
>>>
>>>
>>>
>>>> Hi All,
>>>> In the dspace documentation there is mentioning of statistics. I have
>>>> installed dspace1.4. But when I login as admin and click on the
>>>> statistics link I get a message saying” there are no reports available”
>>>>
>>>> What should I do to enable statistics report? Is there any documentation
>>>> on how to setup statistical report.
>>>>
>>>> Thank you in advance
>>>> Nina
>>>>
>>>>
>>>> ---------------------------------
>>>> Finding fabulous fares is fun.
>>>> Let Yahoo! FareChase search your favorite travel sites to find flight and
>>>> hotel
>>>> bargains.-------------------------------------------------------------------------
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>>>> your
>>>> opinions on IT & business topics through brief surveys-and earn cash
>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
>>>> DSpace-tech mailing list
>>>> DSpace-tech@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>>>
>>>
>>>
>>>
>>> ---------------------------------
>>> It's here! Your new message!
>>> Get new email alerts with the free Yahoo! Toolbar.
>>
>>
>> ---------------------------------
>> Bored stiff? Loosen up...
>> Download and play hundreds of games for free on Yahoo! Games.
> 
> 
> 
> ---------------------------------
> Get your own web address.
> Have a HUGE year through Yahoo! Small Business.


 
---------------------------------
8:00? 8:25? 8:40?  Find a flick in no time
 with theYahoo! Search movie showtime shortcut.

Attachment: dstat.cfg
Description: 2791093689-dstat.cfg

#!/usr/bin/env perl

###########################################################################
#
# stat-general
#
# Author: Richard Jones
# Created On: 25/02/2005
#
# Copyright (c) 2002, Hewlett-Packard Company and Massachusetts
# Institute of Technology.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# - Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# - Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# - Neither the name of the Hewlett-Packard Company nor the name of the
# Massachusetts Institute of Technology nor the names of their
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
###########################################################################

###########################################################################
# This script generates a full report based on the full log period
#
# To customise for your own use change the $out_prefix, $out_suffix, 
# $dsrun and $out_directory variables below.
# 
# If you wish to futher configure this script, you will need to edit the
# command being executed, which is below under $general
#
# For more information on using the LogAnalyser, use:
#
# [dspace]/bin/dsrun org.dspace.app.statistics.LogAnalyser -help
###########################################################################

my $second; 
my $minute; 
my $hour;
my $day;
my $month;
my $year; 
my $week_day; 
my $day_of_year; 
my $is_dst;

# Get the all the values for current time
($second, $minute, $hour, $day, $month, $year, $week_day, $day_of_year, 
$is_dst) = localtime(time);

my $this_year = $year + 1900;
my $this_month = $month + 1;

# Details used
######################################################
$out_prefix = "dspace-log-general-";
$out_suffix = ".dat";
$dsrun = "C:/dspace/bin/dsrun.bat";
$out_directory = "C:/dspace/log/";

######################################################

$general = "$dsrun org.dspace.app.statistics.LogAnalyser -out 
$out_directory$out_prefix$this_year-$this_month-$day$out_suffix";

system($general);

exit(1);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to