Writing web logs to a database

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.