Antezeta LogoAntezeta Web Marketing

Reflections on search engine optimization, web analytics and web marketing

Antezeta Web Marketing header image 2

Automatically download log files from hosting control panel

by · No Comments ·

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 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 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

  1. Hard code username and password or specify them on the command line
  2. Choose to download access, error and/or ftp logs
  3. Can specify a download location in configuration options
  4. Can specify logon screen and logfile base URLs in configuration options
  5. 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:

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!

Originally published September 7th, 2010

  • Sean Carlos is a web marketing consultant & teacher, assisting companies with their Search (SEO + PPC = SEM), Social Media & Digital Media Measurement strategies. Sean first worked with text indexing in 1990 in a project for the Los Angeles County Museum of Art. Since then he worked for Hewlett-Packard Consulting and later as IT Manager of a real estate website before founding Antezeta in 2006. Sean is an official instructor of the Digital Analytics Association and collaborates with the Bocconi University. He is a co-author of the Treccani encyclopedic dictionary of computer science, ICT & digital media. Born in Providence, RI, USA, Sean received Honors in Physics from Bates College, Maine. He speaks English, Italian and German.


No Comments so far ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment

Warning: Comments are very welcome insofar as they add something to the discussion. Spam and/or polemical comments without a rational justification of the author's position risk being mercilessly deleted at the sole discretion of the administrator. Yes, life is hard :-).