Only this method is introduced here, and in some cases it is useful. The purpose is to be able to analyze the current access situation in real time, support the SQL query, which is better than the lag of the traditional log software analysis, because the traditional log analysis software is generally analyzed the previous day's log, all configured the scheduled task, polling log, increment analysis and so on.
This feature does not always open, because you know that the log written to the database will actually degrade performance.
Under Windows platform, IIS logs can be enabled to write to SQL Server in ODBC format, or you can enable the format of the parser, and then analyze with Microsoft's tool log, as well as someone who has written a visual logparser that is the GUI of Log Parser , it is more convenient to use.
Linux platform, the Apache log is not supported by default to write to the database, but there is a third-party module, called Mod_log_mysql,
In http://bitbrook.de/software/mod_log_mysql/, anyway, I was testing half-day did not succeed, it is estimated that I am too lazy to recompile apache reason.
Then found a logtomysql thing, in http://logtomysql.sourceforge.net/install.html, this is the installation document, follow the steps to do it successfully.