Functions

apache_log_load.cc File Reference

#include "Common/Compat.h"
#include <cstdio>
#include <cstring>
#include <iostream>
#include "Common/Error.h"
#include "Common/System.h"
#include "Hypertable/Lib/ApacheLogParser.h"
#include "Hypertable/Lib/Client.h"
#include "Hypertable/Lib/KeySpec.h"
Include dependency graph for apache_log_load.cc:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 This program is designed to parse an Apache web server log and insert the values into a table called 'LogDb'.

Function Documentation

int main ( int  argc,
char **  argv 
)

This program is designed to parse an Apache web server log and insert the values into a table called 'LogDb'.

By default, the row keys of the table are constructed as follows:

<page> <timestamp>

This facilitates queries that return the click history for a specific page. If the --time-order switch is given, then the row keys of the table are constructed as follows:

<timestamp> <page>

This facilitates queries that return a historical portion of the log. The expected format of the log is Apache Common or Combined format. For details, see:

http://httpd.apache.org/docs/1.3/logs.html#common

Definition at line 143 of file apache_log_load.cc.