---
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.
---

# :fa-edit: How to monitor the IIS (W3SVC) log files  

This guide shows you how to monitor [IIS][] (W3SVC) log files using the :Nodinite: [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  

>[!INFO]  
>This guide will teach you how to monitor the IIS (W3SVC) log files using the :Nodinite: [Log File Parser Monitoring Agent][].  

>[!NOTE]  
>This article assumes your IIS uses the [W3C Extended Log File Format](https://www.w3.org/TR/WD-logfile.html)<sup>:fa-arrow-up-right-from-square:</sup>, and the date and time stamp in the IIS log files is in GMT  

## :fa-square-plus: Before you begin  

Ensure you comply with the [prerequisites][Prerequisites for Log File Parser Monitoring Agent] and install the :Nodinite: [Log File Parser Monitoring Agent][].  

## :fa-forward-step: Step 1: Add a new monitoring configuration  

To add a new monitoring entry, click the :fa-square-plus: **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.*  

## :fa-forward-step: 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:  

|:fa-filter: 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`|  

## :fa-forward-step: 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.*  

## :fa-forward-step: 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})  
```  

>[!INFO]  
>The date is required if you want to ignore previous errors. You can ignore previous errors by clicking the **Clear** menu item in the Actions button on the [Resource][Resources].  

![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.*  

### :fa-save: 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.*  

>[!NOTE]  
>The delay in presenting the new evaluated state depends on the monitoring agent's synchronization interval  

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

## :fa-forward-step: 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.*  
  
>[!TIP]  
>You can ignore old errors; by clicking on the [Clear Errors][Clear Errors on Managing Content Files] menu item in the **Actions** button. The [Resource][Resources] is then in the **OK** state until an entry matching the configuration is later found.  

## :fa-forward-step: 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:  

* :fa-download: [Download][Managing Content Files - Download Log File]  
* :fa-trash-can: [Delete][Managing Content Files - Delete Log File]  
  
____  

## :fa-hand-point-right: Next Steps

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

## :fa-link-horizontal: Related Topics

:Nodinite: [File Monitoring Agent][]  

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

[Add or manage Monitor View]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/Add%20or%20manage%20Monitor%20View.md
[Clear Errors on Managing Content Files]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Features/Managing%20Content%20Files.md#fa-broom-clear-errors
[Correlation]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Troubleshooting/How%20to%20monitor%20correlated%20events.md
[Error Report on Managing Content Files]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Features/Managing%20Content%20Files.md#fa-circle-info-error-report
[File Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/File%20Folder/Overview.md
[FileContent]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Troubleshooting/How%20to%20monitor%20file%20content.md
[IIS]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Overview.md
[Log File Parser Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Overview.md
[Managing Content Files - Delete Log File]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Features/Managing%20Content%20Files.md#fa-trash-can-delete-log-file
[Managing Content Files - Download Log File]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Features/Managing%20Content%20Files.md#fa-download-download-log-file
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[png_SaveAndClose]:{ndm}/Documentation%20Pictures/MonitorAgent/SQL/SaveAndClose.png
[Prerequisites for Log File Parser Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Getting%20started/1.%20Prerequisites.md
[RegEx]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Extract/regex.md
[Remote Actions]:{ndr}/Getting%20Started/3.%20Monitor/Remote%20Actions.md
[Resources]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/What%20is%20a%20Resource.md