summaryrefslogtreecommitdiffstats
path: root/contrib/README
blob: bf0e65f7b8dfcb81e85ba45cdf66af586a0ef2a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
This directory contains contributed scripts/programs/utilites for mod_log_sql.

* create_tables.sql

This is the create table SQL commands to create the access, headers_in, 
headers_out, cookies, and notes tables in the MySQL database.
Use it like this.
mysql -u user -h host -p apachelogdatabase < create_tables.sql
Where:
	user is the username to log in as,
	host is the hostname the server is on, 
	apachelogdatabase is the database to put the tables into
	-p will have mysql ask you for a password for the user

*make_combined_log.pl

This perl script will extract the data from mod_log_sql's tables in the 
database and export a standard Apache combined log file. Use this to run
logs through a program like webalizer.

You must edit the perl script to configure variables before you run it.
Usage:
./make_combined_log.pl days virtualhost
Where:
	days is the number of days to fetch (starting from now and going back 
		in time)
	virtualhost is the name of the virtualhost to retrieve

Example:
	./make_combined_log.pl 2 example.com

*mysql_import_combined_log.pl

This is a perl script written by Aaron Jenson that imports a combined log file
from apache into a SQL database table.. You can use this script to import logs
from a webserver you are converting over from the standard Apache log system to
mod_log_sql.  A Usage statement can be fetch by running the program with no 
parameters or with --help or -?.
ss='column1'>| * Cleaned up changelogGravatar Edward Rudd 2004-02-12 | * update changelog1.95Gravatar Edward Rudd 2004-02-05 | | | | | release 1.95 * synchronized extract_* functions with latest apache 1.3 and 2.0.Gravatar Edward Rudd 2004-02-05 | | | | | | | Added some more recent extract_* functions.. still need to assign format letters cleanup/audit of extract_* functions release 1.95 * added mod_log_sql_ssl.c into dist1.94Gravatar Edward Rudd 2004-02-04 | * fixed segfaul bug with pointer arithmetic in add_server_string_slotGravatar Edward Rudd 2004-02-04 | | | | | | Added authors file release 1.94 * added DocBook version of the manualGravatar Edward Rudd 2004-01-24 | * SSL support working under 1.3 and 2.0 as a separate moduleGravatar Edward Rudd 2004-01-22 | | | | | | preparsing of logformat completed. updated configure scripts to detect mod_ssl.h for 1.3 (mostly) * fixed log_error function1.93Gravatar Edward Rudd 2004-01-21 | | | | | | | finished ssl split into separate module added item registration function. (for ssl sub-module) release 1.93 * make sure I initialize the hashGravatar Edward Rudd 2004-01-20 | * Added item registration function and added functions to new system header ↵Gravatar Edward Rudd 2004-01-20 | | | | | | | mod_log_sql.h Registered core item functions in pre_config * moved extract_* functions to functions.h (version specific in ↵Gravatar Edward Rudd 2004-01-20 | | | | | | | | | functions(13|20).h) moves SSL logging routings to mod_log_sql_ssl.c updated changelog added AUTHORS * split out version specific codeGravatar Edward Rudd 2004-01-20 | | | | | | | code compiles under apache 1.3 and 2.0 updated apache m4 script to detect both verions (two minumums) defaulted install to not activate module in configuration file (use make activate) * fixed SSL cflag inclusion1.92