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 -?.
d=e272d2c01c239090ec1fb3d0ed4feda8a888cb41'>commit e272d2c01c...Gravatar Nokis Mavrogiannopoulos 16 years 0.5.4commit f30552add8...Gravatar Nokis Mavrogiannopoulos 17 years 0.5.3commit 5353b12db4...Gravatar Nokis Mavrogiannopoulos 17 years 0.5.2commit b31b434598...Gravatar Nokis Mavrogiannopoulos 17 years 0.5.1commit 4e383e3e1a...Gravatar Nokis Mavrogiannopoulos 18 years 0.4.3commit 2cb49bd513...Gravatar Nokis Mavrogiannopoulos 18 years 0.4.1commit 586e3bef5d...Gravatar Nokis Mavrogiannopoulos 18 years 0.4.2commit 9a2ed619f2...Gravatar Nokis Mavrogiannopoulos 18 years 0.4.2.1commit 9a2ed619f2...Gravatar Nokis Mavrogiannopoulos 18 years 0.5.0-alphacommit 75636faa67...Gravatar Nokis Mavrogiannopoulos 18 years 0.4.0commit 2b9b5d44a1...