Debian Codegraph @

CHANGELOG

raw
1 1.100: 2005-01-11
2 * fixes for NULL fields (empty request_args)
3 * fixed a mysql reconnect bug
4 * wrong hostname was logged when using mass virtual hosting
5 Use, the new 'V' logformat
6 * formatted massvirutalhosting tables to swap - with _.
7 * included winconfig.h in makefile
8 * fixed quoting of unique_id
9 * converted documentation to OOO Docbook ( a subset of the full docbook DTD)
10
11 1.99: 2004-07-28
12 * Added DBI support (not completed yet)
13 * fixed segfault in the mysql driver escape_string function
14 * fixed segfault when forcepreserve is set on.
15 * switched escape_string driver function to include the string quotes.
16 * On Database connection failure Database errors are printed at ERR loglevel
17 instead of debug
18 * included build-apache(13|2).bat scripts in the distribution
19
20 1.98: 2004-05-12
21 * re-fixed apache.m4 to better detect APR and APU code
22 * fixed for win32 compilation under apache 2
23 * lowered minumum required apache 2 version to 2.0.40 (RH9)
24 * Added LogSQLDisablePreserve to disable the preserve file.
25 * Changed default preserve file location to logs/mod_log_sql-preserve
26 And made LogSQLPreserveFile root relative.
27 * fixed bug where preserve file wouldn't be created in apache 2
28 * finished TransferLog documentation
29 * changed strstr to ap_strstr calls and strchr to ap_strchr calls to
30 stop warning when compiling with AP_DEBUG enabled in apache 2
31 * Updated apache m4 to not pass for apache 1.3 if apache 2 is found
32
33 1.97: 2004-04-08
34 * fixed apache.m4 to work with apache 2 setups with different include
35 directories for APR and APU then core Apache
36 * cleaned up configuration documentation (updated due to deprecated commands)
37 * LogSQLLoginInfo updated to support a connection URI
38 * new module "registration" macros to clean up new driver modules
39 * mysql driver completely separted from core module
40
41 1.96: 2004-03-04
42 * fixed LogSQLPreserveFile config parameter
43 * reworked safe_create_tables and core SQL insert routine.
44 * renamed log_sql_* variables and typedefs to logsql_*
45 * separated all mysql specific code to separate code module (DB abstraction)
46 * separated TODO from Changelog
47 * fixed default value of socket file. it's really /var/lib/mysql/mysql.sock not
48 /tmp/mysql.sock
49 * Documentation completely converted to Docbook
50 * Documentation updated. (still needs more work done)
51 * LogSQLDelayedInserts config option removed
52 * Added DB generic LogSQLDBParam. Usage is LogSQLDBParam param value
53 example: LogSQLDBParam tcpport 12345
54 * notes, cookes, headersin, headersout tables are no longer created unless they
55 are used.
56
57 1.95: 2004-02-05
58 * audit and update of extract_* functions to acheive same output as
59 mod_log_config.
60
61 1.94: 2004-02-03
62 * ssl loggin back in as separate module under 1.3 and 2.0
63 * preparsing of format tags is now done to speed up main logging loop.
64 * fixed a nasty bug with pointer arithmetic (ick) that caused a segfault with
65 LogSQLWhichCookies
66
67 1.93: 2004-01-20
68 * Compiles for apache 1.3 AND 2.0
69 * split apache version specific functions to seperate header files
70 * split apache version specific includes to seperate header files
71 * added wrapper defines for apache 1.3
72 * updated configure m4 scripts to detect both apache versions at the same time
73 and assign defines as to which version was found.
74 * made install default to not activate module in configuration files.
75 use make activate instead
76 * split SSL logging to separate module (still needs to be finished)
77
78 1.92: 2004-01-05
79 * fixed compilation issue with mysql 4.x where mysql_error returns const char *
80 * Have SSL support compiling (though not really tested)
81 * updated configure macros to detect mod_ssl.h
82 * configure now uses --with-apxs instead of --with-apache
83 * Added documentation from 1.19b (needs to be update)
84 * Fixed an issue with dependencies in Makefile.in
85
86 1.91: 2003-12-23
87 * Added checks for MySQL to autoconf
88 * fixed merge code to work correctly.
89 * Merged in 1.19b1 changes
90 * Hostnames are now converted to lowercase in the mass-virtual naming section.
91 The loop that converts dots to underscores has been optimized as well.
92 * New directive LogSQLTableType allows one to specify the kind of table that
93 the module makes during table creation (e.g. InnoDB, MyISAM). Thanks to Jim
94 Turner for the suggestion and patch. If your MySQL server does not support
95 the specified type, it will create a MyISAM table instead.
96 * Directives can now be placed in the 'main' server config and will be
97 inherited by the virtual hosts. This means a LOT less repetition: you only
98 specify the item once to have it inherited, but it can still be overridden
99 on a virtualhost level. These can be specified in this manner:
100
101 LogSQLTransferLogTable
102 LogSQLTransferLogFormat
103 LogSQLPreserveFile
104 LogSQLNotesLogTable
105 LogSQLHeadersInLogTable
106 LogSQLHeadersOutLogTable
107 LogSQLCookieLogTable
108 LogSQLRemhostIgnore
109 LogSQLRequestIgnore
110 LogSQLRequestAccept
111 LogSQLWhichNotes
112 LogSQLWhichHeadersOut
113 LogSQLWhichHeadersIn
114 LogSQLWhichCookies
115 LogSQLWhichCookie
116
117 1.90: 2003-12-22
118 * updated code to compile under apache 2.0
119 * rewrote and consolidate configuration handler routines
120 * made all functions static.
121 * made delayed insert configurable, instead of compile time
122 * moved to my autoconfigure support
123
124 1.18:
125 * Delayed inserts (a MySQL extension) are now available at compile-time.
126 THIS IS UGLY because there seems to be a bug in the way MySQL returns
127 errors on failed INSERT DELAYED queries. See the FAQ.
128 * Reworked the Makefile a tad.
129 * Added stdlib.h to the includes, some systems need it for atoi(). Added
130 string.h to the includes just to be safe.
131 * Reworked table creation (again). Inserts are attempted and tables
132 are made only on ER_NO_SUCH_TABLE. This should solve all the multiple-
133 creation-attempt issues as well as reduce overhead.
134 * safe_mysql_query reworked; it now can be counted on to preserve_entry()
135 if the query doesn't succeed. [Before, preserve_entry() was called
136 separately.]
137 * Always reset SIGPIPE to handler before leaving safe_mysql_query().
138 * New directive LogSQLRequestAccept, another filter for excluding things
139 from being logged.
140 * Alphabetized the directives in the reference section of the docs.
141 * New format char 'a' lets one log the request arguments, i.e. the
142 part of a CGI request after the ? character. Also put a column for
143 this in the create_tables.sql file. Thanks to Dave Wilson for this.
144 * Reorganized the FAQ by section.
145 * Renamed global variables (e.g. tcp_port -> logsql_tcpport) throughout
146 the code in order to ensure against naming conflicts. tcp_port, in
147 particular, seemed to be causing problems / segfaults on certain systems.
148 * Renamed safe_mysql_query() to safe_sql_query().
149 * Now check for minimum configuration info to establish db link and
150 log an error if it's insufficient.
151
152
153 1.17:
154 * Renamed the module mod_log_sql to conform to the project goal of
155 database-inspecificity.
156 * Added capability of logging Notes field. This is useful for folks using
157 custom modules that provide loggable info in the notes, e.g. mod_gzip.
158 A new directive LogSQLWhichNotes configures which notes to log to the
159 notes_log table.
160 * Added capability of logging inbound and outbound headers. New directives
161 LogSQLWhichHeadersIn and LogSQLWhichHeadersOut configure which headers to
162 capture. Headers are stored in their own table or tables.
163 * Fixed potential segfault in preserve file function due to silly pfclose
164 placement. (Only affected user if the preserve file couldn't
165 be opened.)
166 * Changed default socket file to /tmp/mysql.sock because that's the
167 default on a compiled MySQL.
168 * Put back-quotes (`) around table name so that names with dashes are
169 legal.
170 * Took away the prepend of /tmp to the preserve filename. Now the
171 user can specify whatever local path they want. I figure that
172 filesystem permissions will prevent people from doing anything
173 really dumb, and people have requested this change.
174 * Better checking in the extract_cookie routine. Before, it could
175 segfault if a person specified "c" but didn't define MySQLWhichCookie.
176 * Some code reorg/renaming for clarity and to support the new direction
177 of database inspecificity. More to come.
178 * Simplified error messages.
179 * Table creation now uses safe_mysql_query and checks the result.
180 * Config directives used to begin with MySQL, now begin with LogSQL.
181 This is for database inspecificity. In your httpd.conf just do
182 a search-and-replace.
183 * More robust table-creation code with error checking. [The race condition
184 that several users have reported may still exist, but this will go a long
185 way toward debugging the condition.]
186 * Fixed bug whereby a MySQL connection was abandoned on reopen; the old
187 connection is now properly closed first.
188 * Minor: remind user not to set createtables when massvirtual is on.
189 * If Apache started but MySQL was unavailable, the module would do
190 everything it was supposed to (preserve entries, etc.) but not notify
191 the sysadmin. Added a log message to alert sysadmin if MySQL is
192 unreachable at startup.
193 * New config key 'I' to extract & log unique_id, provided by mod_unique_id.
194 unique_id is the key that links separate tables (access, notes, etc.)
195 * Migrated to the Artistic License (as used by Perl).
196 * Moved table creation into its own callable function
197 * Robustifying table creation
198 * In make_combined_log.pl, backtick-quoted the table name and added an
199 order-by clause within the select statement.
200 * TCP port number for db connection is now configurable using LogSqlTCPPort
201 * New directive LogSQLForcePreserve sends all log entries directly to the
202 preserve file and *entirely bypasses* the db. Useful for debugging, but
203 can be dangerous if you forget it's set!
204 * Table names are now quoted in all cases with backticks in order to permit
205 names containing dashes (since many hostnames contain dashes).
206 * The request_method field is now created as a varchar(10) instead of (6),
207 after it was pointed out to me that some methods can be longer than 6.
208 * New directive LogSQLMachineID sets a string identifier for the webserver
209 machine. This is useful if you have a cluster of many webservers and you
210 want to differentiate between them in the logs: you can tell which log
211 entries came from each machine and thereby analyze your loadbalacing
212 performance. Activate with the TransferLogFormat character 'M'. Much
213 faster than doing some sort of wacky IP addr lookup via local_addr().
214 * Added an alternative way of logging cookies. If you need to associate
215 multiple cookies with each request, the new way involves using
216 LogSQLWhichCookies (note the plural) and LogSQLCookieLogTable.
217 * Removed LogSQLRefererIgnore references, since it was never actually
218 activated anyway and the idea probably was of minimal value.
219
220
221 1.16:
222 * Moved all the user DEFINEs inside the .c file -- splitting them
223 between the C and the Makefile was getting just too cumbersome.
224 * A new MySQLPreserveFile runtime config directive. In the last
225 version the name of the preserve-file was hardcoded and therefore
226 global across all Apache virtual servers. Now the user can configure
227 this on a per-virthost basis. It defaults to a hardcoded value
228 if the user does not define it. The module *always* prepends /tmp/
229 to the user-supplied value for security reasons.
230 * A new MySQLSocketFile runtime config directive. In the last
231 version the name of the MySQL socket was hardcoded. Now the user
232 can configure this at Apache runtime. However, it is a global
233 setting (set once) just like the rest of the actual database info is.
234 It defaults to a hardcoded value if the user does not define it.
235 * A new MySQLCreateTables runtime config directive. Module can now
236 create the access table on-the-fly. Table creation takes place
237 during the virtual server's first request and is flagged after that to
238 avoid repetition.
239 * A new MySQLMassVirtualHosting runtime config directive. This flag
240 currently only activates a single feature: each virtual server gets
241 its very own dynamically-determined table prefixed 'access_' with the
242 server's name following. It also implies MySQLCreateTables On, and
243 obviates the need for MySQLTransferLogTable.
244 * escape_query (was mysql_escape_log) is now called on every item
245 rather than first checking to see if it needs to be called, which
246 was probably a big waste of time. Furthermore the routine now
247 uses a native MySQL API call to do the escaping instead of doing
248 this 'manually.' It attempts to use the charset-respectful MySQL
249 call first, but falls back on a more generic call if the MySQL
250 server is unavailable (e.g. if it goes offline).
251 * Open preserve file with pfopen instead of regular fopen to
252 take advantage of pool structure.
253 * As forewarned, I finally got rid of the code to support separate
254 Referer and Agent logs.
255 * Finally brought the make process up-to-date with the way Apache
256 likes modules to be done.
257 * MySQLWhichCookie is now configurable on a per-virtualserver basis.
258 Before it was single-shot global only.
259 * Reduced sleep time on a retry to 1/4 second from 1/2 second.
260 * Confirmed that this module will compile with -pedantic ... but not
261 with -ansi. :-)
262
263
264 1.15:
265 * Vastly improved error reporting is a lot clearer about lost db
266 connections, etc. Some unreachable code has been corrected.
267 * The way that query-retries and openlink-retries are handled has
268 been tweaked and improved.
269 * Missed database entries are now preserved for later inclusion. This
270 file is not held open but is closed after each use, so it's safe
271 to delete while Apache is running.
272 * Now each child instantiates its MySQL link upon birth rather than
273 waiting for its first request.
274
275
276 1.14:
277 * Improved the apxs instructions based on user feedback, including the
278 mysql.sock define issue.
279 * Corrected the INSTALL example directives to the new format.
280 * Some improvements to 'make distro'
281
282
283 1.13:
284
285 * Now use ap_get_server_name() in extract_virtual_host() to fix the
286 instances where mass-virtual-hosting sites were getting the wrong
287 server-name written to the log.
288 * Now use mysql_real_connect() instead of mysql_connect(). The
289 latter's use was deprecated and did not work in MySQL 4.
290 * There is now a DEFINE for the socket name. This is used by the
291 mysql_real_connect() function and is relevant only if the db resides
292 on localhost. It is irrelevant if the db resides on a networked
293 machine and is ignored in that case (although it still must be defined
294 for the connect to work).
295
296
297 1.12:
298
299 * Added a mysql_close() call to get rid of those annoying MySQL
300 complaints every time an httpd child process terminates. (Apache
301 1.3 or later.)
302 * Considerable code reorganization and cleanup.
303
304
305 1.11:
306
307 * Completely re-worked the cookie code. Now the user can instruct
308 mod_log_mysql which cookie (out of many available) to log. (See
309 the online directives documentation and FAQ.)
310 * New config capability: 'H' to log the request protocol
311 (e.g. HTTP/1.1)
312 * New config capability: 'm' to log the request method
313 (e.g. GET, PUT, etc.)
314 * New config capabilities: 'z' 'q' & 'Q' to log SSL_CIPHER,
315 SSL_CIPHER_USEKEYSIZE and SSL_CIPHER_ALGKEYSIZE. These require
316 openssl and glibc-devel to be installed. (See the online
317 directives documentation and FAQ.)
318 * Fixed a bug in make_combined_log.pl that caused it to generate
319 incorrect output on single-digit days.
320 * Fixed make_combined_log.pl to use the data logged by 'H' and 'm'.
321 * Migrated all log_error calls to the newer ap_log_error call.
322 * Added a DEBUG define to activate certain debugging/informational
323 error-log messages (for devel purposes).
324 * I apologize for the inconvenience this may cause: I decided to
325 rename the runtime configuration directives so that they would
326 make more sense and group together with a "MySQL" prefix. They
327 are now:
328 MySQLRefererLogTable
329 The MySQL table that holds the referer log
330 MySQLAgentLogTable
331 The MySQL table that holds the agent log
332 MySQLTransferLogTable
333 The MySQL table that holds the transfer log
334 MySQLTransferLogFormat
335 Instruct the module what information to log to the MySQL transfer log
336 MySQLRefererIgnore
337 List of referers to ignore, accesses that match will not be logged to
338 MySQL
339 MySQLRequestIgnore
340 List of URIs to ignore, accesses that match will not be logged to MySQL
341 MySQLRemhostIgnore
342 List of remote hosts to ignore, accesses that match will not be logged
343 to MySQL
344 MySQLDatabase
345 The name of the MySQL database for logging
346 MySQLWhichCookie
347 The CookieName that you want logged when using the 'c' config directive
348 MySQLLoginInfo
349 The MySQL host, user-id and password for logging
350 You'll need to just do a search-and-replace in your httpd.conf...
351 Again, I'm sorry, but it really is better this way.
352 * Cleaned up the summaries that get output on "httpd -L"
353 * Expanded the enclosed access_log.sql file to support every column type
354 that mod_log_mysql provides -- delete the ones that you don't need.
355 * Some cleanup of the Makefile - pay attention to the settings
356 * Made the MySQLTransferLogFormat default "AbHhmRSsTUuv" to incorporate the
357 new column types and sort the characters alphabetically for reading ease.
358
359
360 1.10:
361
362 * New config directive/capability: 'c' to log mod_usertrack cookies.
363 * Some code cleanup and commenting.
364 * Referer and User-Agent now set to want_orig=1 ( a very minor detail )
365 * Corrected mysql_escape_log to properly check for and escape strings
366 with `dangerous' characters. It appears that it was doing this
367 incorrectly before.
368 * Deleted log_mysql_child(), a function that was never called.
369
370
371 1.09:
372
373 * If the MySQL INSERT causes an error, we re-try that INSERT after
374 a short 1/2-second sleep just to make sure it wasn't due to a
375 network glitch or other gremlin.
376 * Made the default log format: huSUsbTvRA. This provides everything
377 required to reproduce Combined Log Format data.
378
379
380 1.08:
381
382 * Now log a single '-' (instead of a zero-length string) when
383 User-Agent is blank. This is similar to what Apache does in its own
384 logs. (Should have caught this when I did the same thing for
385 Referer.)
386 * Separated documentation into README, INSTALL, CHANGELOG, etc. as
387 appropriate.
388
389
390 1.07:
391
392 * Renamed TransferIgnore directive to RequestIgnore, since that's
393 really a more specific and accurate description of what that
394 directive means.
395 * Now log a single '-' (instead of a zero-length string) when Referer
396 is blank. This is similar to what Apache does in its own logs.
397
398
399 1.06:
400
401 * Added 'R' and 'A' options to TransferLogMySQLFormat so that we now
402 can log Referer and Agent respectively.
403 * Code cleanup: all compilation warnings are now gone, even with -Wall.
404 (They were mainly "const" issues that needed straightening up.)
405 * Added RemhostIgnore configuration directive to permit non-logging of
406 any request coming from a specific host, e.g. a local network
407 machine, etc.
408 * Now use the non-obsolete ap_compat.h headerfile instead of
409 compat.h. This simply gets rid of a compilation warning, nothing
410 more.
411 * Now include a headerfile (http_log.h) that was missing. Its
412 absence was giving us this warning message: "implicit declaration of
413 function `ap_log_error_old'."
414 * For numerics that Apache customarily logs as a "-" we now log a zero
415 instead of a -1. This seems to be more intuitive, e.g. in the
416 "bytes_sent" column.
417 * We now have a Makefile and a full "make" process that does all
418 the real work.
419 * New maintainer.
420
421
422 1.05:
423
424 * Removed some redundant code, after being noted by Vivek Khera that
425 this code doesn't even get called with the current apache code. It
426 can be done in apache 1.3, but it works ok without it anyway.
427 * Added the necessary include file to make the module compile under
428 Apache 1.3b6. I haven't actually tested that it works, though.
429 indent'd the code.
430
431
432 1.04:
433
434 * Rearranged some code to allow for a successful apache 1.3beta
435 compilation. Please note that this is *untested*, I only got it to
436 compile, I haven't actually tried to run apache 1.3.
437
438
439 1.03:
440
441 * Changed the check for 'mysql server has gone away' to be case
442 insensitive, so that it works with MySQL 3.21
443 * Changed the behavior so that a link isn't established until it's
444 necessary (e.g., if SQL logging is used for one virtual IP, a link
445 won't be opened until there's an access to that IP).
446
447
448 1.02:
449
450 * Managed to track down that segmentation fault that occured once, and
451 fixed it. No known bugs now exist.
452
453
454 1.01:
455
456 * Segmentation fault in case of certain parameters lacking fixed.
457 * Worked around the SIGPIPE signal that's sent in certain events from
458 * mysql_query(). Minor modifications