Faster Updates with Logaholic’s Perl parser

By default logaholic uses a PHP script to parse your log files. However, a faster Perl script is also available.

You can only use the Perl script if you are running Logaholic on a Linux or OSX server.

Also, you need to have certain Perl modules installed. The modules you need are:

  • Cwd
  • Getopt::Long
  • Time::Local
  • Digest::MD5
  • IO::Zlib
  • Geo::IPfree
  • URI
  • URI::Escape
  • URI::QueryParam

Most of these modules will probably already be available if Perl is already installed.
 

To check if your server can use the Logaholic perl script, go to:
Global Settings > Change Update Method (Perl/PHP)

You can also change this setting on a per profile basis, in that case go to:
Manage Profiles > [profile] > Maintenance > Update Method Preference

The above action will test your server capabilities and return a report. Let’s say that looks something like this:

Perl Log Parser

As you can see from the image above, in this case two of the required modules are “not ok”, namely “IO:Zlib” and “Geo:IPfree”.

To install the missing modules, open a command shell (you will need root access) and type:

cpan IO:Zlib

and

cpan Geo:IPfree

Next, click the “Check Again” button in the Logaholic page. If all went well you should now get a screen that looks like this:

Perl Log Parser

Now, you just click the “Use Perl Method” button to change the setting.