views:

145

answers:

1

i have some apache logs and i want to be able to query the data in it.
so i wanted to know if its possible to convert this log data to a relational database so i later can query and analyze the data using sql statments.
thanks

+4  A: 

Log Parser by Microsoft will let you query various types of data with SQL without needing to convert it.

Log parser is a powerful, versatile tool that provides universal query access to text-based data such as log files, XML files and CSV files, as well as key data sources on the Windows® operating system such as the Event Log, the Registry, the file system, and Active Directory®. You tell Log Parser what information you need and how you want it processed. The results of your query can be custom-formatted in text based output, or they can be persisted to more specialty targets like SQL, SYSLOG, or a chart.

RedFilter
does it support apache logs?
Karim
Yes, you can configure it to parse most types of logs.
RedFilter
Updated with a newer link.
RedFilter
I think you can also get it to write to a relational database as well - probably better from a performance point of view if you have a large number of logs.
Kragen