|
|
|
mod_log_sql 2.0 Documentation |
||
|
Prev: Testing the basic setup --- Up: Configuration --- Next: Instructing the module what NOT to log using filtering directives How to tune logging with run-time directivesInstructing the module what to logThe most basic directive for the module is LogSQLTransferLogFormat, which tells the module which information to send to the database; logging to the database will not take place without it. Place a LogSQLTransferLogFormat directive in the VirtualHost stanza of each virtual host that you want to activate. After LogSQLTransferLogFormat you supply a string of characters that tell the module what information to log. In the configuration directive reference (section ) there is a table which clearly defines all the possible things to log. Let's say you want to log only the "request time," the "remote host," and the "request"; you'd use: LogSQLTransferLogFormat hUS But a more appropriate string to use is LogSQLTransferLogFormat AbHhmRSsTUuv which logs all the information required to be compatible with the Combined Log Format (CLF). If you don't choose to log everything that is available, that's fine. Fields in the unused columns in your table will simply contain NULL. Some of the LogSQLTransferLogFormat characters require a little extra configuration:
|