I’m currently using an Italian hosting service, Webperte, for my Italian blog. The service is fine, except for one minor frustration: they don’t support ftp retrieval of the web server access logs used by log based web analytics systems such as Google’s Urchin.
The official solution is to log in to a hosting control panel, navigate a few screens and click on the log download links… a rather tedious process. Fortunately, the perl scripting language offers a relatively easy way to automate this process. I’ve hacked together a script, retrieve-hosting-logs.gz, which is designed to log in to a Parallels Business Automation control panel and download the two most recent access, error or ftp log files as desired. Feel free to use it at your own risk and don’t expect support you haven’t paid for
.
Primary Features
- Hard code username and password or specify them on the command line
- Choose to download access, error and/or ftp logs
- Can specify a download location in configuration options
- Can specify logon screen URL and logfile base URLs in configuration options
- The script will check to see if logs have already been downloaded – it will only download new logs
To use the script, you’ll need to have perl with the appropriate modules installed on your system. Download the file, unzip and rename retrieve-hosting-logs to retrieve-hosting-logs.pl
Feedback is welcome; enhancements will be considered especially if you supply a patch! Happy downloading and web analysis!
Similar Posts:
- How do search engines, such as Google, handle JavaScript and CSS?
- Web Analytics: Embedded JavaScript Page Tracking Code vs. Web Server Log Files
- How to Specify an HTML Web Document Language for good SEO
- Comparison of Google Analytics / Urchin Tracking Scripts
- Google Labs has re-released the much-maligned Google Web Accelerator
Registration is now open for the next SEO Course (May 14 and 15) and Google Analytics Course (May 9 and 10) in Milan. Don’t miss the opportunity!





No Comments so far ↓
There are no comments yet...Kick things off by filling out the form below.