Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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, 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 (
> [...]
> 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.