# Parse IIS logs from PowerShell

Parse IIS logs from PowerShell on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

IISParser

IISParser is a PowerShell module to read IIS logs. It's very fast and easy to use. This module is based on IISLogParser library that does all the heavy lifting.

[View on GitHub](https://github.com/EvotecIT/IISParser) [Visit Website](#) [Releases](https://github.com/EvotecIT/IISParser/releases/tag/IISParser-PowerShellModule.v1.0.2) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/IISParser)

Stars**36**

Forks**6**

Open issues**0**

PowerShell Gallery downloads**224579**

Release**v1.0.2**

Language: C# Updated: 2026-11-23

Curated Examples

Read an IIS log file into PowerShell objects.

This pattern is useful for a first look at an IIS log without loading the entire file.

It is adapted from `IISParser.PowerShell/CmdletGetIISParsedLog.cs`.

## Example

```powershell
Import-Module IISParser

$logPath = Join-Path $PSScriptRoot 'samples\u_ex230101.log'

Get-IISParsedLog -FilePath $logPath -First 10 -Expand |
    Select-Object Timestamp, ClientIP, Method, UriPath, StatusCode, TimeTakenMs
```

## What this demonstrates

- using a script-local log path
- limiting the first pass to a small number of records
- expanding fields into PowerShell-friendly properties

## Source

- [CmdletGetIISParsedLog.cs](https://github.com/EvotecIT/IISParser/blob/master/IISParser.PowerShell/CmdletGetIISParsedLog.cs)

<!-- PowerForge markdown artifact sha256:89BDBFA78575C76560C437E98C3B95F1A63ABC4EC03703725A95430B92338A19 -->
