---
title: "How to Monitor IIS (W3SVC) Log Files with Nodinite: Step-by-Step Guide"
description: Learn how to monitor IIS (W3SVC) log files with Nodinite. This guide covers step-by-step configuration, prerequisites, RegEx filters, alerting, and diagnostics for proactive monitoring and rapid troubleshooting.
---

# <i class="fal fa-edit" aria-hidden="true"></i> How to monitor the IIS (W3SVC) log files  

This guide shows you how to monitor [IIS][] (W3SVC) log files using the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log File Parser Monitoring Agent][]. You will learn how to configure monitoring, set up [RegEx][] filters, and leverage Nodinite's alerting and diagnostics to proactively detect and resolve issues.  

**On this page, you will learn how to:**  

✅ Set up monitoring for IIS (W3SVC) log files with Nodinite  
✅ Use RegEx filters to target specific log file patterns  
✅ Configure alerts for errors and warnings in your IIS logs  
✅ Access diagnostics and manage log file resources  

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p>This guide will teach you how to monitor the IIS (W3SVC) log files using the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> <a href="https://docs.nodinite.com/logging-and-monitoring/log-file-parser/overview/">Log File Parser Monitoring Agent</a>.</p></div>
</aside>

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>This article assumes your IIS uses the <a href="https://www.w3.org/TR/WD-logfile.html">W3C Extended Log File Format</a><sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>, and the date and time stamp in the IIS log files is in GMT</p></div>
</aside>

## <i class="fal fa-square-plus" aria-hidden="true"></i> Before you begin  

Ensure you comply with the [prerequisites][Prerequisites for Log File Parser Monitoring Agent] and install the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log File Parser Monitoring Agent][].  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 1: Add a new monitoring configuration  

To add a new monitoring entry, click the <i class="fal fa-square-plus" aria-hidden="true"></i> **Add** button from the **Content File** tab.  
![Content File tab][1]  
*Content File tab in Nodinite Log File Parser Monitoring Agent.*  

1. Enable the configuration  
2. Name the configuration  
3. Provide an optional description  
4. Select the Application from the dropdown (available in version 7.2.0 and later)  

![General Tab][2]  
*General tab for configuration details.*  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 2: Set the monitor path  

Next, enter the path to where the IIS (W3SVC) log files are located (for example, `C:\inetpub\logs\LogFiles\W3SVC1`).  

1. Enter the path  
2. Enter the RegEx-based filter (`\.log$`)  

![Path tab][3]  
*Path tab for specifying log file location and filter.*  

Below is a table with some common RegEx file filter examples:  

|<i class="fal fa-filter" aria-hidden="true"></i> Filter|Example|Comment|  
|:---:|---|---|  
|`\.xml$`|XML Files|All XML files with suffix ".xml"|  
|`\.txt$`|Text Files|All text files with suffix ".txt"|  
|`^ONLYME\.data$`|Specific file|**Only this file** "ONLYME.data"|  
|`^PrefixedFileName.*\.csv$`|Matching a file name pattern|Files with prefix `^PrefixedFileName`, and suffix `.csv`|  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 3: Set the start match  

Next, enter the start match configuration.  

1. **'Line contains'** (what error codes are we looking for? In this case 4xx and 5xx)  

``` regex  
\- \- (4[0-9][02-9]|5[0-9]{2})  
```  

![Match tab][4]  
*Match tab for RegEx error code configuration.*  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 4: Set the time-related options  

1. **Clear Date Time** - Leave empty for initial setup. This field allows you to ignore errors that occurred before a specific timestamp. Set this value through the [Clear Errors][Clear Errors on Managing Content Files] action to reset monitoring after investigating issues. The timestamp is in ISO 8601 format (e.g., `2024-07-16 19:23:33.818Z`).
2. Select the **File time option** from the dropdown (e.g., `Modified after Clear Date Time`)  
3. Check the **'Lines have a DateTime'** checkbox  
4. **'Match date'** - Enter the RegEx pattern to extract the date and time from each line (the format in this case is 2017-05-17 13:37:00):

``` regex  
^([{0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})  
```  

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p>The date is required if you want to ignore previous errors. You can ignore previous errors by clicking the <strong>Clear</strong> menu item in the Actions button on the <a href="https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/">Resource</a>.</p></div>
</aside>

![Warning if previous lines in the text files are ignored][10]  
*A RegEx for the Date time is required to understand how to parse the date time for rows in the text file.*  
5. **'Matched date groups'**: Enter `1` to specify which RegEx capture group contains the date
6. **Date Time Format (Optional)**: This field is optional and can be left empty
7. **Use Agent time zone**: Leave this checkbox unchecked unless the date and time in the log files lack UTC 'Z' indicator or offset

![Time options tab][5]  
*Time options tab for date/time configuration.*  

### <i class="fal fa-save" aria-hidden="true"></i> Save  

You must click '**Save**' or '**Save and close**' for changes to persist. The new settings/thresholds are evaluated on the next synchronization.  
![Save and Close buttons][png_SaveAndClose]  
*Here's an example of the **Save** options.*  

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>The delay in presenting the new evaluated state depends on the monitoring agent's synchronization interval</p></div>
</aside>

**Save and close**, save, and close the dialogue.  
**Cancel**, closes the dialogue without saving any changes.  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 5: Configure the Monitor View  

Next, add the named  [Resource][Resources] to a [Monitor View][Monitor Views].  

* Follow the '[Add or manage Monitor View][]' user guide.  

![Errors detected][6]  
*Here's an example of a [Monitor View][Monitor Views] with errors detected in IIS log files.*  

You can further review the details about the errors by clicking on the **Actions** button, and then clicking on the [Error Report][Error Report on Managing Content Files] menu item.  
![Show Error Report Action][7]  
*Error Report [Remote Action][Remote Actions] in Monitor View.*  

This action opens a new modal with a list of all IIS log files where an error is still active (**>** last clear date-time).  
![Error Report][8]  
*Error Report modal with active errors.*  

Additional information is available if you expand the row.  
![Details][9]  
*Expanded error details in the Error Report.*  
  
<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>You can ignore old errors; by clicking on the <a href="https://docs.nodinite.com/logging-and-monitoring/log-file-parser/features/managing-content-files/#fa-broom-clear-errors">Clear Errors</a> menu item in the <strong>Actions</strong> button. The <a href="https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/">Resource</a> is then in the <strong>OK</strong> state until an entry matching the configuration is later found.</p></div>
</aside>

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 6: Manage Diagnostic Log Files  

To view the set of diagnostics files included in the Monitoring, click the **Actions** button, and then, the `Show Log file(s)` menu item.  
![Show Log File(s) menu item][11]  
*Show Log File(s) menu item for diagnostics.*  

Next, a screen presents including a table with all the diagnostics log files.  
![Log Files][12]  
*Log Files screen with diagnostics log files.*

You can perform the following Actions on the diagnostic files:  

* <i class="fal fa-download" aria-hidden="true"></i> [Download][Managing Content Files - Download Log File]  
* <i class="fal fa-trash-can" aria-hidden="true"></i> [Delete][Managing Content Files - Delete Log File]  
  
____  

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* [How to monitor correlated events][Correlation]  
* [How to monitor file content][FileContent]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [File Monitoring Agent][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/CF/ContentFileTab.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/IIS/GeneralTab.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/IIS/PathTab.png
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/IIS/MatchTab.png
[5]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/IIS/TimeOptionsTab.png
[6]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/IIS/ErrorsDetected.png
[7]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/ActionsShowErrorReport.png
[8]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/IIS/ErrorReport.png
[9]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/IIS/Details.png
[10]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/IIS/ClearWarningBadgeContentFile.png
[11]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/ActionShowLogFiles.png
[12]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/IIS/LogFiles.png

[Add or manage Monitor View]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/add-or-manage-monitor-view/
[Clear Errors on Managing Content Files]:https://docs.nodinite.com/logging-and-monitoring/log-file-parser/features/managing-content-files/#fa-broom-clear-errors
[Correlation]:https://docs.nodinite.com/logging-and-monitoring/log-file-parser/troubleshooting/how-to-monitor-correlated-events/
[Error Report on Managing Content Files]:https://docs.nodinite.com/logging-and-monitoring/log-file-parser/features/managing-content-files/#fa-circle-info-error-report
[File Monitoring Agent]:https://docs.nodinite.com/logging-and-monitoring/file-folder/overview/
[FileContent]:https://docs.nodinite.com/logging-and-monitoring/log-file-parser/troubleshooting/how-to-monitor-file-content/
[IIS]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/overview/
[Log File Parser Monitoring Agent]:https://docs.nodinite.com/logging-and-monitoring/log-file-parser/overview/
[Managing Content Files - Delete Log File]:https://docs.nodinite.com/logging-and-monitoring/log-file-parser/features/managing-content-files/#fa-trash-can-delete-log-file
[Managing Content Files - Download Log File]:https://docs.nodinite.com/logging-and-monitoring/log-file-parser/features/managing-content-files/#fa-download-download-log-file
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[png_SaveAndClose]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/SQL/SaveAndClose.png
[Prerequisites for Log File Parser Monitoring Agent]:https://docs.nodinite.com/logging-and-monitoring/log-file-parser/getting-started/prerequisites/
[RegEx]:https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/formula/extract/regex/
[Remote Actions]:https://docs.nodinite.com/getting-started/monitor/remote-actions/
[Resources]:https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/