---
title: How to Monitor Nodinite Log Audits for Errors with the Web Service Monitoring Agent
description: Learn how to monitor Nodinite Log Audits for error-level entries using the Nodinite Web Service Monitoring Agent. This guide provides step-by-step instructions to detect integration errors proactively and receive timely alerts.
---

# <i class="fal fa-heart-pulse" aria-hidden="true"></i> How to monitor Nodinite Log Audits

Detect integration errors before they impact your business by proactively monitoring the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log Audit][Log Audits] trail. This guide shows you how to configure the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Web Service [Monitoring Agent][Monitoring Agents] to check for error-level log audit entries and receive timely alerts.  

✅ Instantly detect integration errors recorded in Nodinite Log Audits  
✅ Automate error monitoring with configurable polling intervals  
✅ Receive actionable alerts when error-level log audit entries are found  

>This guide provides instructions for configuring the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web Service Monitoring Agent][Web Services Agent] to monitor the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log Audits][] [Web API][] for error-level entries.

<div class="mermaid">
graph TD
  A[Web Service Configuration] --> | Evaluate Log Audits | B{Items Empty?}  
  B --> | Yes | E[OK]  
  B --> | No | F[Error]  
</div>
*Diagram: The Web Service Monitoring Agent evaluates the Log Audits API. If no error-level items are found, the state is OK; if errors exist, an Error state is triggered.*

The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web Service Monitoring Agent][Web Services Agent] enables you to monitor if error-level log audit entries exist by evaluating the **body** of the HTTP/HTTPS response from a call to the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web API][].  

The Web Service configuration you create will become a [Resource][Resources] in one or more [Monitor Views][] where you can track the evaluated state in real time.

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

Logically identify and group monitored [Resources][] using the [Applications][] feature. Manage these in the **Applications** tab for your selected instance of the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web Service Monitoring Agent][Web Services Agent].  

* Click the <i class="fal fa-square-plus" aria-hidden="true"></i> **Add** button  
* Enter **Name** and a **unique id**. For example, use **Nodinite** as Name and **1337** as the unique Id. You can use any unique values.  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 2: Add a new Web Service Monitoring Configuration

Configure what to monitor—in this case, the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log Audits][] [Web API][].  

* Click the <i class="fal fa-square-plus" aria-hidden="true"></i> **Add** button  
* Expand the empty entry by clicking on the accordion  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 3: Basic tab

Name your configuration by editing the following fields in the **Basic** tab:  

* Make sure the configuration is **enabled** (checked)  
* Set the **Display name** to a logical name, e.g., `Monitor Nodinite Log Audits for Errors`  
* Set the **Description** to provide context, e.g., `Alert when error-level log audit entries exist in Nodinite`  
* Select the **Application** you created in [Step 1](#fa-forward-step-step-1-add-a-new-application)  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 4: Advanced tab

Manage your time-related thresholds in the **Advanced** tab:  

* Set the **Polling Interval** (e.g., **300** seconds for frequent checks)  
* Set the **Request Timeout** (e.g., **30** seconds)  
* Check **Allow Retries**  
* Set the **Number of retries** (e.g., **3**) to avoid false alerts  
* Set the **Retry Status Code** to **OK** to ignore errors during retries  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 5: Request tab

Configure the actual **Request** in the **Request** tab:  

* Enter the **URI** to the [Log Audits][] [Web API][], for example:  

```text
https://nodinite.contoso.com:40001/api/logaudits?numberOfItems=25&page=1&level=3&fromDate=2024-01-01&orderBy=SequenceNumber%20DESC
```

Replace `nodinite.contoso.com:40001` with the host and port of your environment's [Web API][]; the host and port come from your environment's settings in the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Portal ([Servers step][]). Use `localhost` as the host if the Web Service agent is installed on the same server as the [Web API][].  

| Parameter | Value | Description |
|-----------|-------|-------------|
| `numberOfItems` | `25` | Maximum number of items to return per page |
| `page` | `1` | Page number for paginated results |
| `level` | `3` | Log level filter: 3 = Error |
| `fromDate` | `2024-01-01` | Start date for the log audit search |
| `orderBy` | `SequenceNumber DESC` | Sort order for the results |

* Set the **method** to **Get**  

Leave the rest of the fields empty. The [Web API][] does not require additional HTTP headers for this request.  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 6: Response tab

Configure response validation in the **Response** tab:  

* Set the **Status Code** to `200` (**OK**)  
* For this type of check, you can usually leave performance checkboxes **unchecked**  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 7: Evaluate response body tab

Configure evaluation of the HTTP response body in the **Evaluate response body** tab. The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log Audits][] API returns a JSON object where the `Items` property is an array of log audit entries. When `Items` is empty, no error-level entries exist.  

* Select **Expression Type**: `Regex Match`  
* Enter the following **Expression**:  

```regex
"Items"\s*:\s*\[]
```

* Set the **Expected Result** to:  

```text
"Items":[]
```

> This expression matches when the `Items` array in the response is empty, meaning no error-level log audit entries exist. If error entries are found, the match fails and the monitoring state changes to Error.

Leave the rest of the fields at their default values.  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 8: Authentication tab

If the [Web API][] application pool account is **not** the same as the Windows Service account running the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web Service Monitoring Agent][Web Services Agent], provide alternate credentials in the **Authentication** tab:  

* Check **Use [Windows Authentication][]**  
* Enter the Domain User: `DOMAIN\user` (the user must have access to the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Web Client][])  
* Enter the Password for the user  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 9: Save configuration

Click **Save** to persist your configuration.  

## <i class="fal fa-forward-step" aria-hidden="true"></i> Step 10: Create a Monitor View and configure alerts

Configure a [Monitor View][Monitor Views] and select an [Alarm Plugin][Alarm Plugins] to receive alerts in your preferred way. These steps are detailed in the [Add or manage Monitor View][] user guide.  

> Make sure to select the [Resource][Resources] you named in [Step 3](#fa-forward-step-step-3-basic-tab).  

___

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

<i class="fal fa-square-plus" aria-hidden="true"></i> [Add or manage Monitor View][]  
<i class="fal fa-monitor-waveform" aria-hidden="true"></i> [Add or manage a Monitoring Agent Configuration][]  

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

<i class="fal fa-monitor-waveform" aria-hidden="true"></i> [Monitoring Agents][]  
<i class="fal fa-display" aria-hidden="true"></i> [Monitor Views][]  
<i class="fal fa-gears" aria-hidden="true"></i> [Administration][]  
<i class="fal fa-list" aria-hidden="true"></i> [Log Audits][]  

[Add or manage a Monitoring Agent Configuration]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/add-or-manage-monitor-agent/
[Add or manage Monitor View]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/add-or-manage-monitor-view/
[Administration]:https://docs.nodinite.com/administration/overview/
[Alarm Plugins]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/what-is-an-alarm-plugin/
[Applications]:https://docs.nodinite.com/administration/monitor-management/applications/features/what-is-an-application/
[Log Audits]:https://docs.nodinite.com/administration/tools/log-audit-search/
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[Monitoring Agents]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[Resources]:https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/
[Servers step]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/04-servers/#core-platform-services
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/getting-started/overview/
[Web Services Agent]:https://docs.nodinite.com/logging-and-monitoring/web-services/overview/
[Windows Authentication]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/iis-authentication-settings/