Networking, Programming and Graphics - Tutorials
ONLINEHOWTO.net Tutorials Category

Update missing Urchin statistics

Type: Picture Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Level: Expert Networking, Programming and Graphics - Tutorials Networking, Programming and Graphics - Tutorials Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2010-Feb-06
Networking, Programming and Graphics - Tutorials
Visited: 524 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Published: Tony Potter

With few steps I will show you how to update missing Urchin statistics, or just to update them from the web server access logs.

You must have at least certain knowledge where the access logs are, and what is the server configuration to update Urchin.

First login to your Urchin panel as administrator, and then go to ‘Configuration " Urchin Profiles " Log manager’.
There find the domain you want to update and click on ‘Edit’ (the one with the wrench icon).
Update missing Urchin statistics
It is very rare the Urchin server and the Web server to be on one and the same hardware machine.

In this case Urchin stats are updating from remote Web Server and we go to remote Urchin settings.
Check whether the remote settings, as well as the credentials and the logs path are correct.
In case they are not, correct them and click on update.
Update missing Urchin statistics
You can use the ‘Browse’ button to locate certain web server log file if you want to reprocess or update Urchin statistics for a particular time-frame.
It could happen the log file to be already logrotated on your web server, so you have to log in to it and (find, extract) make sure they are available on the server, on place where Urchin can find them remotely. Also if you have multiple files you want to process, you may use “*” instead a name of a file.

So, I presume that you have set the ‘Remote Log Source File’ correctly, and now we must rerun Urchin.

For that login to your Urchin server via SSH with Putty or other preferred SSH client, switch to your Urchin user, and change the current directory to Urchin binary (where the executables are).
ssh root@urchin.server 

root@urchin.server# su - urchin
urchin@urchin.server~$ cd /home/urchin/bin/
urchin@urchin.server~/bin$ 
It depends on your Urchin version, but in my case the available options are:
./urchin 
Usage: ./urchin [-DHt] [-d YYYYMMDD] -p <profilename>
       -D = debug mode
       -H = log output to History file instead of stdout
       -t = print test information only
       -d = specifies the date for reprocessing data
       -p = specify profile to process
The command we need in this case is “-p = specify profile to process”.
To update Urchin stats write the command like that:

urchin@urchin.server ~$/bin urchin "p yourdomain.com

This will rerun the statistics and will update them:
Update missing Urchin statistics
If there are errors ( I am afraid I cannot cover all of them) search through Internet for resolution. In most of the cases the web server log file is just corrupted and you cannot use it or it has to be edited to remove the ‘bad’ part from it.

Do not forget to change and update the Urchin remote settings back if you have changed the log file there.
Rate this tutorial:                    
Post Comment


    • posted on 2010-Apr-21 | 07:45:00 AM
      Gee rules!
Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: