Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peschuster/logimporter
Imports w3c log files (iis) into sql server.
https://github.com/peschuster/logimporter
iis logs sql-server
Last synced: 1 day ago
JSON representation
Imports w3c log files (iis) into sql server.
- Host: GitHub
- URL: https://github.com/peschuster/logimporter
- Owner: peschuster
- License: mit
- Created: 2012-02-19T17:49:06.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-04-11T15:26:49.000Z (almost 9 years ago)
- Last Synced: 2023-03-20T15:16:17.063Z (almost 2 years ago)
- Topics: iis, logs, sql-server
- Language: C#
- Homepage:
- Size: 2.95 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# LogImporter
*LogImporter* reads webserver log files (iis, w3c), applies transformations on data records and imports them into a database (currently only SQL Server is supported).
## Features
* Parses log files
* Determines which log entries are new since last import
* Imports log data into SQL Server
* Removes guid ids in urls to generate statistics for actual pages (e.g. ASP.NET MVC url routing with guid ids in the path)
* Resolves client ip address to country name and code (using GeoIP.dat by MaxMind)### Supported formats
* W3C extended (IIS)
## Usage
*LogImporter* is used from the command line.
The following options are required:
-d=VALUE Directory with log files
-c=VALUE Connection string for target database
-t=VALUE Target table nameFurthermore the following optional parameters are available:
-p=VALUE Pattern for log files
-n Create the table if it does not exist already
-f, --force Force full import of all filesExample usage:
LogImporter.exe -d "D:\logs\W3SVC8" -t w3c_testlog -n -c "Data Source=.\SQLEXPRESS;Initial Catalog=logimporter_test;Integrated Security=True" -p "*.log"
## Build
How to build *LogImporter*:
1. Go to `\build\` directory.
2. Execute `go dist` on the command line.*Note: Maybe you have to adjust the path to `MSBuild.exe` in `build\go.bat` to your .NET version number.*