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

:ReleaseNotes(https://portal.nodinite.com/marketplace/9):  

# Configuring the Nodinite Mule ESB Logging Agent

>Unlock the full potential of your integration landscape by configuring the :Nodinite: [Mule ESB Logging Agent][]. This guide empowers you to seamlessly transfer log4j content to :Nodinite:, enabling advanced monitoring, troubleshooting, and business insight. :fa-lightbulb:  

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>:fa-arrow-up-right-from-square:</sup> or [Notepad++][].  

* :fa-gear: [General](#fa-gear-general)  
* :fa-folder-open: [Folders](#fa-folder-open-folders) – Define where to collect Log4J content  
* :fa-leaf: [Environment](#fa-leaf-environments)  
  * :fa-hard-drive: [Log](#fa-hard-drive-log) – :Nodinite: destination and delivery settings  
    * :fa-exchange-alt: [Replace Rules](#fa-exchange-alt-replace-rules) – Dynamic endpoint management  

## :fa-gear: General

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

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

## :fa-folder-open: 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|  
|---|---|---|---|  
|:fa-folder: **Folder**|Path to search for log files|`\\server\share`|Use double backslashes in JSON notation|  
|:fa-filter: **Filter**|File pattern to match|`*.log`, `*.json`|Supports wildcards|  
|:fa-folder-tree: **IncludeChildFolders**|Search subfolders for [JSON Log Event][]|**true** or **false**||  
|:fa-folder-minus: **ExcludeChildFolders**|Array of subfolders to exclude (full path required)||Only applies if **IncludeChildFolders** is true|  
|:fa-search: **Log**|See [Log](#fa-hard-drive-log) for delivery settings|||  

## :fa-leaf: 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|  
|---|---|---|---|  
|:fa-leaf: **EnvironmentName**|Name of the Cloudhub environment|Prod/Test/QA||  
|:fa-fingerprint: **EnvironmentId**|Unique Cloudhub environment ID (GUID)|1A395ED7-5CC5-4B4A-9A09-...||  
|:fa-user: **Username**|Username for Cloudhub access|user||  
|:fa-key: **Password**|Password for Cloudhub access|password||  
|:fa-search: **Log**|See [Log](#fa-hard-drive-log) for settings|||  

## :fa-hard-drive: Log

The **Log** section controls how and where log data is delivered to :Nodinite:. Fine-tune these settings to optimize performance, security, and traceability.  

|Property|Description|Value Example|Comment|  
|---|---|---|---|  
|:fa-toggle-on: **Enabled**|Enable or disable logging|**true** or **false**|Temporarily disable without removing configuration|  
|:fa-link: [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 :Nodinite: Portal ([Servers step][])|  
|:fa-fingerprint: **LogAgentId**|Unique identifier for this [Log Agent][Log Agents]|42|Helps trace log origins|  
|:fa-clock: **PollingInterval**|How often to check for new logs (seconds)|30|Adjust for your environment's needs|  
|:fa-exchange-alt: [ReplaceRules](#fa-exchange-alt-replace-rules)|Rules that rewrite logged [Endpoint][Endpoints] addresses; see [Replace Rules](#fa-exchange-alt-replace-rules)||Dynamic endpoint management|  

## :fa-exchange-alt: Replace Rules

>[!TIP]
>Replace Rules help you standardize dynamic endpoint names and URIs, making your monitoring and analytics more meaningful.  

**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|  
|---|---|---|---|  
|:fa-tag: **Name**|Rule name for easy identification|||  
|:fa-toggle-on: **ReplaceName**|Whether to update the endpoint name|**true** (default)||  
|:fa-toggle-on: **ReplaceUri**|Whether to update the endpoint URI|**true** (default)||  
|:fa-filter: **Pattern**|RegEx pattern to match values to replace|`/([0-9]{4,})$`|Only the first group is replaced|  
|:fa-pen-to-square: **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
      }
    }
  ]
}
```

___  

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

* :fa-key: [Custom Business Event][BusinessEvents]  
* :fa-hard-drive: [Logger][Logger]  

## :fa-link-horizontal: Related Topics

:fa-rocket: [Install Mule Log Agent][]  
:fa-hard-drive: [Logging Service][]  

[BusinessEvents]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Features/Business%20Events.md
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[Install Mule Log Agent]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Getting%20started/2.%20Install.md
[JSON Log Event]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md
[Log Agents]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Agent.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Logger]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Features/Logger.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Mule ESB Logging Agent]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Overview.md
[Notepad++]:https://notepad-plus-plus.org/downloads/
[ReplaceRules]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Getting%20started/3.%20Configuration.md
[Servers step]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-platform-services
[Support]:https://support.nodinite.com