English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
OPLP: Ocaml APache Log Parser
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-10-14 (18:23)
From: Gaius Hammond <gaius@g...>
Subject: Re: [Caml-list] OPLP: Ocaml APache Log Parser

On 11 Oct 2010, at 14:54, oliver@first.in-berlin.de wrote:

> On Mon, Oct 11, 2010 at 02:45:49PM +0100, Chris Yocum wrote:
>> Dear Everyone,
>> I just wanted to let Ocaml'ers know that I am currently working on an
>> apache combined log parser.  It is still in very early stages of
>> development but patches/comments/feature requests/bug reports are  
>> very
>> welcome.  The code lives on github (http://github.com/cyocum/OPLP).
> [...]
> Aha... long ago I had done something similar, and it had an sql-like
> language for using it.

I do something like this, but using OCaml to load a logfile into  
SQLite, and analyze it with "real" SQL.


Probably my technique using sscanf wouldn't be fast enough for  
something as big as an Apache log that might have a million lines.