Urchin Helper Scripts

Urchin Helper Scripts

The following scripts are available from Urchin by Google for your use. These scripts are provided for advanced users for their use in customizing Urchin. Please note that we are unable to provide support for the installation or use of these scripts.

  • u6data_extractor.pl: Script to retrieve data from the urchin.cgi engine and print a text-based report, which can be emailed, converted to HTML, etc. This script requires additional Perl modules in order to function correctly: the Perl-DBD-Pg package (if using PostgreSQL) and Perl-DBD-MySQL (if using Mysql).

  • u6scan_historylog.pl: This script will parse the Urchin 6 scheduler history file for errors for a particular date and print a notification if any profile exits with a non-zero exit status. This script requires additional Perl modules in order to function correctly: the Perl-DBD-Pg package (if using PostgreSQL) and Perl-DBD-MySQL (if using Mysql).

  • weblog_rotate.pl: Rotates the specified logs and names them with yesterday's date. The script also restarts the web server with a specified command and optionally compresses old logs and removes them after a certain period.

  • split_logs.pl: Splits an Apache Extended Combined access log into individual logs based on the virtual host logged in the second field.