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

# :fa-edit: Automate monitoring of content-based files  

This guide shows you how to automate monitoring of content-based 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 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 :Nodinite: [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>  
```  

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

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

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

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

### :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 **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.*  
  
>[!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 **OK** until a new entry matches the configuration.  
____  

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

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

## :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/Content/GeneralTab.png
[3]:{ndm}/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/Content/PathTab.png
[4]:{ndm}/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/Content/MatchTab.png
[6]:{ndm}/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/Content/ErrorsDetected.png
[7]:{ndm}/Documentation%20Pictures/MonitorAgent/LogFileParser/ActionsShowErrorReport.png
[8]:{ndm}/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/Content/ErrorReport.png
[9]:{ndm}/Documentation%20Pictures/MonitorAgent/LogFileParser/Troubleshooting/Content/Details.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
[IISLogFileMonitoring]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Troubleshooting/How%20to%20monitor%20the%20IIS%20(W3SVC)%20log%20files.md
[Log File Parser Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Overview.md
[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
[Resources]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/What%20is%20a%20Resource.md