---
title: Enable Logging from WSO2 Enterprise Integrator Solutions with Nodinite
description: Enable asynchronous logging from WSO2 Enterprise Integrator to Nodinite. Learn how to configure, format, and move business transaction logs for secure, self-service access and business insights.
---

# How to enable Logging from WSO2 Enterprise Integrator solutions to Nodinite

Enable asynchronous, business-centric logging from WSO2 Enterprise Integrator to :Nodinite:. This guide helps you capture, format, and move business transaction logs for secure, self-service access and actionable business insights.

>[!TIP]
>Use [Asynchronous Logging][] to send logs from WSO2 Enterprise Integrator to :Nodinite:. Add custom code to your solution to enable this integration.

* ✅ Log business transactions asynchronously for reliability and performance  
* ✅ Format logs for :Nodinite: and deliver them securely  
* ✅ Empower business users with self-service log access and insights  

>[!IMPORTANT]
>**Always set OriginalMessageTypeName for searchable business data** - When logging from WSO2 Enterprise Integrator, the [Message Types][] field in your [JSON Log Event][] is
**critical** for enabling business intelligence features. Without proper Message Types:
>
>1. [Search Field Expressions][] cannot extract Order Numbers, Customer IDs, Invoice amounts, Transaction codes, or other business identifiers
>2. [Log Views][] can only search by timestamps and correlation IDs, not by business data
>3. [Non-Events Monitoring][] cannot track message volumes, detect missing messages, or alert on pattern anomalies
>4. [Business Process Modeling (BPM)][BPM] cannot correlate transactions end-to-end across your WSO2 flows and other systems
>
>**Set `OriginalMessageTypeName` in your JSON Log Event before writing to intermediate storage.** Plan your Message Types during development—they define how Nodinite extracts searchable business data from your logged messages.

Add custom logging code to your WSO2 Enterprise Integrator solution so you log business transactions to :Nodinite:.  

<div class="mermaid">
graph LR
    subgraph "WSO2 Enterprise Integrator"
        roBroker(fal:fa-brackets-curly Custom Code)-->roSink(fal:fa-file-export Intermediate storage )
    end
    subgraph "Nodinite instance"
        roPS(fal:fa-truck-pickup Pickup Service) -->roNI(fal:fa-cloud-arrow-down Log API)
        roSink --> roPS
    end
</div>  

*Diagram: Asynchronous logging flow from WSO2 Enterprise Integrator to Nodinite, using custom code, intermediate storage, and the :Nodinite: [Pickup Log Events Service Logging Agent][Pickup Service].*

## Step by step guide

Follow these steps to enable logging:

### 1. Create the event

Add custom logging in your flows. Use Log4J or similar frameworks, depending on your design, policy, and needs.  

### 2. Convert the logged event to Nodinite format

Translate your logs to :Nodinite: [JSON Log Event][].

To uniquely identify the [Log Agent][Log Agents], set a **LogAgentValueId**. Make the **LogAgentValueId** (mandatory number) configurable in your WSO2 Enterprise Integrator solution. Do not hardcode this value—use different values for each environment (e.g., Prod, Test, QA, ...).

>[!IMPORTANT]
>**Include OriginalMessageTypeName in your JSON Log Event** - This field is **mandatory** for business intelligence:
>
>```json
>{
>  "LogAgentValueId": 42,
>  "EndPointName": "WSO2 Integration - Receive Orders",
>  "EndPointUri": "http://wso2-ei:8280/services/OrderService",
>  "EndPointDirection": 0,
>  "EndPointTypeId": 60,
>  "OriginalMessageTypeName": "PurchaseOrder#1.0",
>  "ProcessingUser": "WSO2-EI-User",
>  "ProcessName": "OrderIntegration",
>  "ProcessingMachineName": "WSO2-SERVER-01",
>  "ProcessingModuleName": "OrderMediator",
>  "ProcessingModuleType": "WSO2Mediator",
>  "StartLogTime": "2025-10-12T10:30:00.000Z",
>  "EndLogTime": "2025-10-12T10:30:01.500Z",
>  "LogMessage": "Order received from customer",
>  "StateCode": 0,
>  "ApplicationInterchangeId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
>  "Body": "<Order><OrderId>ORD-2025-001</OrderId><CustomerId>CUST-12345</CustomerId>...</Order>"
>}
>```
>
>Without `OriginalMessageTypeName`, [Search Field Expressions][] cannot extract business data, and features like [Non-Events Monitoring][] and [BPM][] won't function.

>[!TIP]
>Map your existing properties to standard properties and attach context and payload as needed to maximize the value of your logs. Use [Context Options][] to add custom searchable properties.

### 3. Send Event to intermediate storage

Configure the :Nodinite: [Pickup Log Events Service Logging Agent][Pickup Service] to fetch logged events from your chosen intermediate storage.

>[!IMPORTANT]
>Choose a local, highly available intermediate storage for best reliability.

>[!TIP]
>Send logged events asynchronously to the Nodinite [Log API][Log Event]. Use the Nodinite Pickup Service to follow the asynchronous pattern.

### 4. Move logged events using the Nodinite Pickup Service

The :Nodinite: [Pickup Log Events Service Logging Agent][Pickup Service] fetches [Log Events][Log Event] from your intermediate storage. Consume [Log Events][Log Event] from any supported source that fits your needs.

### 5. Configure Message Types

Define [Message Types][] for your WSO2 logged events. Each Message Type represents a specific message format (e.g., "PurchaseOrder#1.0", "Invoice#2.0", "CustomerUpdate#1.0"). Message Types are **mandatory** and determine which [Search Field Expressions][] will extract business data from your logged messages.

### 6. Configure Search Field Expressions

Create [Search Field Expressions][] bound to your [Message Types][]. These expressions extract business identifiers (Order Numbers, Customer IDs, Invoice amounts, Transaction codes) from your logged message bodies using [XPath][], [JSON Path][], Regular Expressions, or other parsers.

### 7. Create Log Views

Create [Role][Roles]-based [Log Views][] to visualize and search the logged data. Configure role-based access so business users can self-service search by business data extracted by your [Search Field Expressions][].

### 8. Configure Non-Events Monitoring (Optional)

Set up [Non-Events Monitoring][] to track expected message volumes and detect missing messages from your WSO2 integrations.

### 9. Design BPM Processes (Optional)

Use [Business Process Modeling (BPM)][BPM] to correlate transactions end-to-end across your WSO2 Enterprise Integrator flows and other systems.

## :fa-shield-check: What firewall settings are required?

WSO2 Enterprise Integrator never connects to :Nodinite: directly, so you open these hops only:

* **WSO2 Enterprise Integrator → intermediate storage**: the storage's own port, for example SMB 445 for a file share, 1433 for SQL Server, 5671-5672 and 443 for Azure Event Hubs or Service Bus, or 443 for Azure Blob Storage. A local folder or database needs no rule.
* **[Pickup Service][] → intermediate storage**: the same port, outbound from the server that runs the Pickup Service.
* **Pickup Service → [Log API][]**: the Log API site port, set per environment in the :Nodinite: Portal. No rule is needed when both run on the Core Services Server.

The [Pickup Service firewall settings][Pickup firewall] list every port and hostname per storage type.

___

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

:fa-file: [Configure Message Types][Message Types] - **Critical first step** for searchable business data  
:fa-magnifying-glass-plus: [Configure Search Field Expressions][Search Field Expressions] - Extract business identifiers  
:fa-table-list: [Create Log Views][Log Views] - Enable business user self-service  

## :fa-link-horizontal: Related Topics

:fa-file-code: [JSON Log Event][] - Required format for WSO2 logging  
:fa-file: [Message Types][] - **Mandatory** for business intelligence features  
:fa-magnifying-glass-plus: [Search Field Expressions][] - Extract Order Numbers, Customer IDs, Invoice amounts  
:fa-table-list: [Log Views][] - Business-data searches and role-based access  
:fa-stopwatch: [Non-Events Monitoring][] - Track message volumes and detect missing messages  
:fa-project-diagram: [Business Process Modeling (BPM)][BPM] - End-to-end transaction correlation  
:fa-bolt: [Asynchronous Logging][] - Recommended approach for reliability  
:fa-gear: [Context Options][] - Additional searchable properties  
:fa-truck-pickup: [Pickup Service][] - Fetches log events from intermediate storage  
:fa-box-archive: [Log Agents][] - Identify logging sources  
:fa-user-shield: [Roles][] - Role-based access control  

[Asynchronous Logging]:{ndr}/Core%20Services/Log%20API/Features/Asynchronous%20Logging.md
[BPM]:{ndr}/Repository%20Model/BPMs/Overview.md
[Context Options]:{ndr}/Core%20Services/Log%20Event/Features/Context%20Options.md
[JSON Log Event]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md
[JSON Path]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/JSON%20Path.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
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Non-Events Monitoring]:{ndr}/Logging%20and%20Monitoring/Non-Events/Overview.md
[Pickup firewall]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Getting%20started/1.%20Prerequisites.md#fa-shield-check-firewall-requirements
[Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Search Field Expressions]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Overview.md
[XPath]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Extract/xPath.md