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

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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. <i class="fal fa-bolt" aria-hidden="true"></i> <i class="fal fa-search" aria-hidden="true"></i>

1. [Mule ESB - Custom Connector][] – This is the **recommended** option. By using the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [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.

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p><strong>Set Message Type for searchable business data</strong> - When logging from Mule ESB flows, the <a href="https://docs.nodinite.com/repository-model/message-types/overview/">Message Types</a> field (using <code>OriginalMessageTypeName</code> or <code>im_messageType</code>) determines which <a href="https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/overview/">Search Field Expressions</a> extract business data like Order Numbers, Customer IDs, and Invoice amounts. Without proper Message Types, features like <a href="https://docs.nodinite.com/logging-and-monitoring/non-events/overview/">Non-Events Monitoring</a>, <a href="https://docs.nodinite.com/repository-model/bpms/overview/">Business Process Modeling (BPM)</a>, and business-data searches in <a href="https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/">Log Views</a> won't function. Configure Message Types in your Mule flow logging code before deploying to production.</p></div>
</aside>

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.

___

## <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 Log Agents][]  
* <i class="fal fa-search" aria-hidden="true"></i> [Add or manage Log View][]  
* <i class="fal fa-edit" aria-hidden="true"></i> [Configuration][] of the agent  
* <i class="fal fa-rocket" aria-hidden="true"></i> [Install Mule Log Agent][Install]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> Configure the necessary [Prerequisites][]  
* <i class="fal fa-arrow-turn-up" aria-hidden="true"></i> [Updating][Update]  

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

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

[Add or manage Log Agents]:https://docs.nodinite.com/administration/log-management/log-agents/features/add-or-manage-log-agent/
[Add or manage Log View]:https://docs.nodinite.com/administration/log-management/log-views/features/add-or-manage-log-view/
[BPM]:https://docs.nodinite.com/repository-model/bpms/overview/
[Business Events]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/features/business-events/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/getting-started/configuration/
[Install]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/getting-started/install/
[Log Agents]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-agent/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Log4J]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/features/log4j/
[Logger]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/features/logger/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[Mule ESB - Custom Connector]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/features/custom-connector/
[Mule ESB Correlation]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/troubleshooting/how-do-i-correlate-logged-events/
[Mule ESB Logging Agent]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/overview/
[Non-Events Monitoring]:https://docs.nodinite.com/logging-and-monitoring/non-events/overview/
[Pickup Service]:https://docs.nodinite.com/logging-and-monitoring/pickup-logevents-service/overview/
[Prerequisites]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/getting-started/prerequisites/
[Search Field Expressions]:https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/overview/
[Search Fields]:https://docs.nodinite.com/administration/log-management/search-fields/features/what-is-a-search-field/
[Update]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/updating/