---
title: "Automate Content-Based File Monitoring with Nodinite: Step-by-Step Guide"
description: Learn how to automate content-based file monitoring with Nodinite. This guide covers step-by-step configuration, RegEx filters, alerting, and diagnostics for proactive monitoring and rapid troubleshooting.
---

# <i class="fal fa-edit" aria-hidden="true"></i> Automate monitoring of content-based files  

This guide shows you how to automate monitoring of content-based 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>'s alerting and diagnostics to proactively detect and resolve issues across multiple files and formats.  

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

✅Automate inspection of content in text-based log files—even across multiple files  
✅Use RegEx filters to target specific patterns and business-critical events  
✅Get real-time alerts for matching content and errors  
✅Integrate with [Monitor Views][] and manage resources efficiently  

<div class="mermaid">  
graph LR  
    subgraph "Nodinite"  
        N[Nodinite Log File Parser Monitoring]  
    end  
    subgraph "File shares"  
        N --> | Inspect content | roFolder1(fal:fa-folder Some folder)  
        N --> | Inspect content | roFolder2(fal:fa-folder Some other folder)  
        roFolder1 --> | Matching content | roE(fal:fa-times-circle Error)  
        roFolder2 --> | No match | roOK(fal:fa-check OK)  
    end  
</div>  

*Diagram: Visual overview of how Nodinite inspects content in multiple file shares and triggers alerts based on matching content.*  

To get you started, let's look at a quick example to help you understand a use case. Below is a sample XML file where the system has rejected the Order Response.  
A rejected Order Response is probably inadequate for your business, and you should get an alert that this situation exists. In your real-world scenario, you might have other entities that you would like to monitor, and since 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][] uses **RegEx** expressions, most use cases should be possible to cover.  

``` xml  
<ns0:OrderResponse xmlns:ns0="Common.Schemas/Nodinite/1.0">  
    <Order>  
        <Id>101</Id>  
        <Status>OK</Status>          
    </Order>  
    <Order>  
        <Id>102</Id>  
        <Status statusCode="1337">REJECTED</Status>                  
    </Order>  
</ns0:OrderResponse>  
```  

## <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 **Log File Events** tab.  
![Content tab][1]  
*Content tab in Nodinite Log File Parser Monitoring Agent.*  

1. Name the configuration  
2. Provide an optional description  
3. 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 log files with events to correlate are located (for example, `C:\Temp\BizTalk\INT001 Orders\Out`).  

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

![Path][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. The files with arbitrary content do not need a date-time; hence, you can safely **uncheck** the '**Lines have a DateTime**' checkbox  
2. In this case, we are looking for a line that contains a statusCode - `statusCode="[0-9]+"`  

![Start match][4]  
*Start match tab for RegEx pattern configuration.*  

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

1. Leave the Clear Date Time field empty for now. This field is populated by the system when an end-user is clearing previous problems.  
2. Select the time option (`Modified after clear date-time`)  
3. Uncheck the **'Lines have a DateTime'** checkbox  

### <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 **correlated** 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.  
![error action][7]  
*Error Report action in Monitor View.*  

This action opens a new modal with a list of all log files with an active error (**>** last clear date-time).  
![Error Report][8]  
*Do note that the monitoring may span multiple files(!)*  

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 <strong>OK</strong> until a new entry matches the configuration.</p></div>
</aside>

____  

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

* [How to monitor correlated events][Correlation]  
* [How to monitor the IIS (W3SVC) log files][IISLogFileMonitoring]  

## <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/Content/GeneralTab.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/Content/PathTab.png
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/Content/MatchTab.png
[6]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/Content/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/Content/ErrorReport.png
[9]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/Content/Details.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/
[IISLogFileMonitoring]:https://docs.nodinite.com/logging-and-monitoring/log-file-parser/troubleshooting/how-to-monitor-the-iis-w3svc-log-files/
[Log File Parser Monitoring Agent]:https://docs.nodinite.com/logging-and-monitoring/log-file-parser/overview/
[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/
[Resources]:https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/