---
title: How to Configure the Nodinite Mule ESB Logging Agent for Advanced Integration
description: Discover how to configure the Nodinite Mule ESB Logging Agent for seamless integration, advanced log management, and powerful monitoring. Learn about unique features, best practices, and how to maximize value for your integration landscape.
---

<a class="nodinite-release-notes" href="https://portal.nodinite.com/marketplace/9" data-url="https://portal.nodinite.com/marketplace/9"><i class="fal fa-fw fa-file-alt" aria-hidden="true"></i> Release Notes</a>

# Configuring the Nodinite Mule ESB Logging Agent

>Unlock the full potential of your integration landscape by configuring the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Mule ESB Logging Agent][]. This guide empowers you to seamlessly transfer log4j content to <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>, enabling advanced monitoring, troubleshooting, and business insight. <i class="fal fa-lightbulb" aria-hidden="true"></i>  

You can tailor the [Log Agent][Log Agents]'s behavior by editing the `Settings.json` file in the installation folder. For best results, open it with an [elevated Notepad](https://www.google.com/search?q=open+elevated+notepad)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> or [Notepad++][].  

* <i class="fal fa-gear" aria-hidden="true"></i> [General](#fa-gear-general)  
* <i class="fal fa-folder-open" aria-hidden="true"></i> [Folders](#fa-folder-open-folders) – Define where to collect Log4J content  
* <i class="fal fa-leaf" aria-hidden="true"></i> [Environment](#fa-leaf-environments)  
  * <i class="fal fa-hard-drive" aria-hidden="true"></i> [Log](#fa-hard-drive-log) – <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> destination and delivery settings  
    * <i class="fal fa-exchange-alt" aria-hidden="true"></i> [Replace Rules](#fa-exchange-alt-replace-rules) – Dynamic endpoint management  

## <i class="fal fa-gear" aria-hidden="true"></i> General

The **General** section defines global settings that shape the agent's core behavior and identity.  

|Property|Description|Value Example|Comment|  
|---|---|---|---|  
|<i class="fal fa-leaf" aria-hidden="true"></i> **Environment**|Name of the environment where this agent runs|**Test**, **Prod**|Use clear, descriptive names for easy identification|  
|<i class="fal fa-bug" aria-hidden="true"></i> **Debug**|Enable detailed diagnostics|**true** or **false**|Set to `false` in production for optimal performance|  
|<i class="fal fa-code-commit" aria-hidden="true"></i> **Version**|Internal configuration file version|1.2.3.4|**READ ONLY** – Do not change manually|  

## <i class="fal fa-folder-open" aria-hidden="true"></i> Folders

The **Folders** section lets you specify where the Log Agent should search for log files. You can monitor local folders or SMB file shares, making it easy to centralize log collection across your enterprise.  

**Folders** is an array of **Folder** objects. Each **Folder** points to a root directory (local or network) where the Log Agent scans for log files containing [JSON Log Events][JSON Log Event].  

|Property|Description|Value Example|Comment|  
|---|---|---|---|  
|<i class="fal fa-folder" aria-hidden="true"></i> **Folder**|Path to search for log files|`\\server\share`|Use double backslashes in JSON notation|  
|<i class="fal fa-filter" aria-hidden="true"></i> **Filter**|File pattern to match|`*.log`, `*.json`|Supports wildcards|  
|<i class="fal fa-folder-tree" aria-hidden="true"></i> **IncludeChildFolders**|Search subfolders for [JSON Log Event][]|**true** or **false**||  
|<i class="fal fa-folder-minus" aria-hidden="true"></i> **ExcludeChildFolders**|Array of subfolders to exclude (full path required)||Only applies if **IncludeChildFolders** is true|  
|<i class="fal fa-search" aria-hidden="true"></i> **Log**|See [Log](#fa-hard-drive-log) for delivery settings|||  

## <i class="fal fa-leaf" aria-hidden="true"></i> Environments

**Environments** is a collection of one or more Cloudhub environments, allowing you to manage multiple integration landscapes from a single configuration.  

|Property|Description|Value Example|Comment|  
|---|---|---|---|  
|<i class="fal fa-leaf" aria-hidden="true"></i> **EnvironmentName**|Name of the Cloudhub environment|Prod/Test/QA||  
|<i class="fal fa-fingerprint" aria-hidden="true"></i> **EnvironmentId**|Unique Cloudhub environment ID (GUID)|1A395ED7-5CC5-4B4A-9A09-...||  
|<i class="fal fa-user" aria-hidden="true"></i> **Username**|Username for Cloudhub access|user||  
|<i class="fal fa-key" aria-hidden="true"></i> **Password**|Password for Cloudhub access|password||  
|<i class="fal fa-search" aria-hidden="true"></i> **Log**|See [Log](#fa-hard-drive-log) for settings|||  

## <i class="fal fa-hard-drive" aria-hidden="true"></i> Log

The **Log** section controls how and where log data is delivered to <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>. Fine-tune these settings to optimize performance, security, and traceability.  

|Property|Description|Value Example|Comment|  
|---|---|---|---|  
|<i class="fal fa-toggle-on" aria-hidden="true"></i> **Enabled**|Enable or disable logging|**true** or **false**|Temporarily disable without removing configuration|  
|<i class="fal fa-link" aria-hidden="true"></i> [LogAPI][Log API]|Address of the Nodinite [Log API][]|`https://nodinite.contoso.com:40002/LogAPI/`|Use the host and port of your Log 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][])|  
|<i class="fal fa-fingerprint" aria-hidden="true"></i> **LogAgentId**|Unique identifier for this [Log Agent][Log Agents]|42|Helps trace log origins|  
|<i class="fal fa-clock" aria-hidden="true"></i> **PollingInterval**|How often to check for new logs (seconds)|30|Adjust for your environment's needs|  
|<i class="fal fa-exchange-alt" aria-hidden="true"></i> [ReplaceRules](#fa-exchange-alt-replace-rules)|Rules that rewrite logged [Endpoint][Endpoints] addresses; see [Replace Rules](#fa-exchange-alt-replace-rules)||Dynamic endpoint management|  

## <i class="fal fa-exchange-alt" aria-hidden="true"></i> Replace Rules

<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>Replace Rules help you standardize dynamic endpoint names and URIs, making your monitoring and analytics more meaningful.</p></div>
</aside>

**ReplaceRules** is an array of rules that update [Endpoints][] with a new Name or URI, especially useful for dynamic values like IDs.  

|Property|Description|Value Example|Comment|  
|---|---|---|---|  
|<i class="fal fa-tag" aria-hidden="true"></i> **Name**|Rule name for easy identification|||  
|<i class="fal fa-toggle-on" aria-hidden="true"></i> **ReplaceName**|Whether to update the endpoint name|**true** (default)||  
|<i class="fal fa-toggle-on" aria-hidden="true"></i> **ReplaceUri**|Whether to update the endpoint URI|**true** (default)||  
|<i class="fal fa-filter" aria-hidden="true"></i> **Pattern**|RegEx pattern to match values to replace|`/([0-9]{4,})$`|Only the first group is replaced|  
|<i class="fal fa-pen-to-square" aria-hidden="true"></i> **Group1Value**|Replacement value for the matched group|`{customerId}`||  

**Example:**  

The original URI:

```uri
https://www.nodinite.com/int042/getCustomer/12345
```

With ReplaceRules, the logged URI becomes:

```uri
https://www.nodinite.com/int042/getCustomer/{CustomerId}
```

If you did not configure [ReplaceRules][] before deploying, you may end up with a large number of [Endpoints][]. Contact our [Support][] for help optimizing your configuration.  

___  

```json
{
  "Environment": "Test",
  "Debug": true,
  "Version": "1.2",
  "Folders": [
    {
      "Folder": "C:\\Mule\\logs\\IMLog",
      "IncludeChildFolders": false,
      "Filter": "*.log",
      "ExcludeChildFolders": [
        {
          "Name": "C:\\Temp\\MuleLogs\\IMLog\\NotMe"
        }
      ],
      "Log": {
        "Enabled": true,
        "PollingInterval": 60,
        "LogAPI": "https://nodinite.contoso.com:40002/LogAPI/",       
        "LogAgentId": 42,
        "ReplaceRules": [
          {
            "Name": "Fix Endpoint name to change customer Id to {customerId}",
            "ReplaceName": true,
            "ReplaceUri": true,
            "Pattern": "/([0-9]{4,})$",
            "Group1Value": "{customerId}"
          }
        ]
      }
    }
  ],
  "Environments": [
    {
      "EnvironmentName": "Test",
      "EnvironmentId": "1A395ED7-5CC5-4B4A-9A09-87A19803567A",
      "UserName": "user",
      "Password": "password",
      "Log": {
        "Enabled": true,
        "PollingInterval": 60,
        "LogAPI": "https://nodinite.contoso.com:40002/LogAPI/",
        "LogAgentId": 43,
        "ReplaceRules": [
          {
            "Name": "Fix End Point real id to {id}",
            "ReplaceName": true,
            "ReplaceUri": true,
            "Pattern": "/([R0-9]{4,})$",
            "Group1Value": "{id}"
          }
        ]
      }
    }
  ]
}
```

**Example for versions before 4.3.0.5:**  

```json
{
  "Environment": "Test",
  "Debug": true,
  "Version": "1.1",
  "Folders": [
    {
      "Folder": "C:\\Mule\\logs\\IMLog",
      "IncludeChildFolders": false,
      "Filter": "*.log",
      "ExcludeChildFolders": [
        {
          "Name": "C:\\Temp\\MuleLogs\\IMLog\\NotMe"
        }
      ],
      "Log": {
        "Enabled": true,
        "PollingInterval": 60,
        "LogAgentId": 42
      }
    }
  ],
  "Environments": [
    {
      "EnvironmentName": "Test",
      "EnvironmentId": "1A395ED7-5CC5-4B4A-9A09-87A19803567A",
      "UserName": "user",
      "Password": "password",
      "Log": {
        "Enabled": true,
        "PollingInterval": 60,
        "LogAgentId": 43
      }
    }
  ]
}
```

___  

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

* <i class="fal fa-key" aria-hidden="true"></i> [Custom Business Event][BusinessEvents]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Logger][Logger]  

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

<i class="fal fa-rocket" aria-hidden="true"></i> [Install Mule Log Agent][]  
<i class="fal fa-hard-drive" aria-hidden="true"></i> [Logging Service][]  

[BusinessEvents]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/features/business-events/
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Install Mule Log Agent]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/getting-started/install/
[JSON Log Event]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/
[Log Agents]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-agent/
[Log API]:https://docs.nodinite.com/core-services/log-api/overview/
[Logger]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/features/logger/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[Mule ESB Logging Agent]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/overview/
[Notepad++]:https://notepad-plus-plus.org/downloads/
[ReplaceRules]:https://docs.nodinite.com/logging-and-monitoring/pickup-logevents-service/getting-started/configuration/
[Servers step]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/04-servers/#core-platform-services
[Support]:https://support.nodinite.com