How to monitor the IIS (W3SVC) log files
Section titled “ 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
Before you begin
Section titled “ Before you begin”Ensure you comply with the prerequisites and install the Nodinite Log File Parser Monitoring Agent.
Step 1: Add a new monitoring configuration
Section titled “ Step 1: Add a new monitoring configuration”To add a new monitoring entry, click the Add button from the Content File tab.

Content File tab in Nodinite Log File Parser Monitoring Agent.
- Enable the configuration
- Name the configuration
- Provide an optional description
- Select the Application from the dropdown (available in version 7.2.0 and later)

General tab for configuration details.
Step 2: Set the monitor path
Section titled “ 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).
- Enter the path
- Enter the RegEx-based filter (
\.log$)

Path tab for specifying log file location and filter.
Below is a table with some common RegEx file filter examples:
| 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 |
Step 3: Set the start match
Section titled “ Step 3: Set the start match”Next, enter the start match configuration.
- 'Line contains' (what error codes are we looking for? In this case 4xx and 5xx)
\- \- (4[0-9][02-9]|5[0-9]{2})
Match tab for RegEx error code configuration.
Step 4: Set the time-related options
Section titled “ Step 4: Set the time-related options”- 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 action to reset monitoring after investigating issues. The timestamp is in ISO 8601 format (e.g.,
2024-07-16 19:23:33.818Z). - Select the File time option from the dropdown (e.g.,
Modified after Clear Date Time) - Check the 'Lines have a DateTime' checkbox
- '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):
^([{0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})
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 for date/time configuration.
You must click 'Save' or 'Save and close' for changes to persist. The new settings/thresholds are evaluated on the next synchronization.

Here's an example of the Save options.
Save and close, save, and close the dialogue.
Cancel, closes the dialogue without saving any changes.
Step 5: Configure the Monitor View
Section titled “ Step 5: Configure the Monitor View”Next, add the named Resource to a Monitor View.
- Follow the 'Add or manage Monitor View' user guide.

Here's an example of a Monitor View 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 menu item.

Error Report Remote Action 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 modal with active errors.
Additional information is available if you expand the row.

Expanded error details in the Error Report.
Step 6: Manage Diagnostic Log Files
Section titled “ 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 for diagnostics.
Next, a screen presents including a table with all the diagnostics log files.

Log Files screen with diagnostics log files.
You can perform the following Actions on the diagnostic files:
Next Steps
Section titled “ Next Steps”Related Topics
Section titled “ Related Topics”Nodinite File Monitoring Agent