0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
apache_log_load.cc File Reference
#include <Common/Compat.h>
#include <Hypertable/Lib/ApacheLogParser.h>
#include <Hypertable/Lib/Client.h>
#include <Hypertable/Lib/KeySpec.h>
#include <Common/Error.h>
#include <Common/System.h>
#include <cstdio>
#include <cstring>
#include <iostream>
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'. More...
 

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 144 of file apache_log_load.cc.