---
title: Enable Logging from Mule ESB and MuleSoft Anypoint with Nodinite – Overview & Best Practices
description: Discover the best ways to enable logging from Mule ESB and MuleSoft Anypoint flows with Nodinite. Learn about the recommended Custom Connector, built-in logging shapes, and how to correlate events for seamless integration monitoring.
---

# Mule ESB Logging Overview

:Nodinite: empowers you to achieve robust, business-driven logging from Mule ESB and MuleSoft (Anypoint) flows. Choose the approach that best fits your integration landscape and unlock powerful monitoring, troubleshooting, and analytics. :fa-bolt: :fa-search:

1. [Mule ESB - Custom Connector][] – This is the **recommended** option. By using the :Nodinite: [Pickup Log Events Service Logging Agent][Pickup Service], you eliminate the need for the [Mule ESB Logging Agent][] and gain a future-proof, scalable solution.
2. **Built-in logging shapes** – **NOT recommended** for most scenarios, but still supported:
   * [Logger][]  
   * [Business Events][]

The [Mule ESB Logging Agent][] leverages the output from the **Log4J** framework (option 2) to retrieve context and message body from Mule ESB flows running on-premise or in the cloud. Learn how to configure [Log4J logging][Log4J].

You write the required logging code directly within your Mule Flows, giving you full control and flexibility.

>[!IMPORTANT]
>**Set Message Type for searchable business data** - When logging from Mule ESB flows, the [Message Types][] field (using `OriginalMessageTypeName` or `im_messageType`) determines which [Search Field Expressions][] extract business data like Order Numbers, Customer IDs, and Invoice amounts. Without proper Message Types, features like [Non-Events Monitoring][], [Business Process Modeling (BPM)][BPM], and business-data searches in [Log Views][] won't function. Configure Message Types in your Mule flow logging code before deploying to production.

To correlate messages within Mule Flows, configure a session variable. See the '[How do I correlate logged events?][Mule ESB Correlation]' user guide for best practices.

___

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

* :fa-square-plus: [Add or manage Log Agents][]  
* :fa-search: [Add or manage Log View][]  
* :fa-edit: [Configuration][] of the agent  
* :fa-rocket: [Install Mule Log Agent][Install]  
* :fa-hard-drive: Configure the necessary [Prerequisites][]  
* :fa-arrow-turn-up: [Updating][Update]  

## :fa-link-horizontal: Related Topics

:fa-file: [Message Types][] - Critical for [Search Field][Search Fields] extraction from Mule ESB events  
:fa-magnifying-glass-plus: [Search Field Expressions][] - Extract business data from flow messages  
:fa-table-list: [Log Views][] - Search logged data by business identifiers  
:fa-stopwatch: [Non-Events Monitoring][] - Track message volumes and patterns  
:fa-project-diagram: [Business Process Modeling (BPM)][BPM] - End-to-end transaction correlation  
:fa-box-archive: [Log Agents][]  

[Add or manage Log Agents]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/Add%20or%20manage%20Log%20Agent.md
[Add or manage Log View]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/Add%20or%20Manage%20Log%20View.md
[BPM]:{ndr}/Repository%20Model/BPMs/Overview.md
[Business Events]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Features/Business%20Events.md
[Configuration]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Getting%20started/3.%20Configuration.md
[Install]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Getting%20started/2.%20Install.md
[Log Agents]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Agent.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Log4J]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Features/Log4J.md
[Logger]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Features/Logger.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Mule ESB - Custom Connector]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Features/Custom%20Connector.md
[Mule ESB Correlation]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Troubleshooting/How%20do%20I%20correlate%20logged%20events.md
[Mule ESB Logging Agent]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Overview.md
[Non-Events Monitoring]:{ndr}/Logging%20and%20Monitoring/Non-Events/Overview.md
[Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[Prerequisites]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Getting%20started/1.%20Prerequisites.md
[Search Field Expressions]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Overview.md
[Search Fields]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md
[Update]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Updating.md