IISLogParser 1.3.0

dotnet add package IISLogParser --version 1.3.0
NuGet\Install-Package IISLogParser -Version 1.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="IISLogParser" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IISLogParser --version 1.3.0
#r "nuget: IISLogParser, 1.3.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install IISLogParser as a Cake Addin
#addin nuget:?package=IISLogParser&version=1.3.0

// Install IISLogParser as a Cake Tool
#tool nuget:?package=IISLogParser&version=1.3.0

This library allows the import and parsing of IIS log files from the filesystem to a List <IISLogEvent>. This project arose from the need to have a component that allows both the import of small log files as well as larger files (> 1Gb).

Build with NET Standard 2.0.3, can be used with .Net Framework or .Net Core

Processing

The processing engine detects the size of the file to be processed and if it is less than 50 Mb it does a single read to memory and treats the data from there, for larger files to avoid OutOfMemory, reading is done line by line.

Properties

FilePath [string] → Path to the file

MissingRecords [bool] → Flag that indicates if there are any missing records. For larger files, this property can be flagged as true.

CurrentFileRecord [int] → When processing large files this will store the currently file record index. For example, if the file has 1.000.000 log events and the processing is done in blocks of 250000(MaxFileRecord2Read), we'll have 4 cycles each on with this flag set with 250.000, 500.000, 750.000 and finally 1.000.000

MaxFileRecord2Read [int] → Controls the maximum limit of items that the <IISLogEvent> List can have. If the number of events in the log file exceeds MaxFileRecord2Read the MissingRecords variable assumes the value of true and we can perform one more reading of a MaxFileRecord2Read set. For files less than 50Mb this value has no effect because the engine performs a single read to memory and treats the data from there. For example, if the file has 1.000.000 log events and this is set to 250.000, will perform 4 cycle each one extracting a List<IISLogEvent> with a count of 250.000

Usage :

        List<IISLogEvent> logs = new List<IISLogEvent>();
        using (ParserEngine parser = new ParserEngine([filepath]))
        {
            while (parser.MissingRecords)
            {
                logs = parser.ParseLog().ToList();
            }
        }
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.0 3,648 4/26/2022
1.2.0 424 4/26/2022
1.1.0 4,277 11/25/2018
1.0.1 724 11/23/2018
1.0.0 731 11/22/2018