Skip to content
Documentation
Updated 6 minutes to read
Markdown

How to enable Logging from WSO2 API Manager to Nodinite

Section titled “How to enable Logging from WSO2 API Manager to Nodinite”

Enable asynchronous, business-centric logging from WSO2 API Manager to Nodinite. This guide helps you capture API gateway transactions, format log events, and deliver them securely for self-service access and actionable business insights.

✅ Capture full API request and response payloads for every gateway transaction
✅ Log business transactions asynchronously for reliability and performance
✅ Format logs for Nodinite and deliver them securely via the Pickup Service
✅ Empower business users with self-service log access and insights

Add a custom handler or mediator to your WSO2 API Manager configuration so you log API gateway transactions to Nodinite.

graph LR subgraph "WSO2 API Manager" gw["API Gateway"]-->handler["Custom Handler / Log4J"] handler-->storage["Intermediate Storage"] end subgraph "Nodinite" ps["Pickup Service"]-->api["Log API"] storage-->ps end

Diagram: Asynchronous logging flow from WSO2 API Manager to Nodinite, using a custom handler, intermediate storage, and the Nodinite Pickup Log Events Service Logging Agent.

Follow these steps to enable logging from WSO2 API Manager:

Add a custom handler or use Log4J in your WSO2 API Manager configuration. Implement a custom handler that intercepts API requests and responses at the API Gateway level, capturing payload and context information.

2. Convert the logged event to Nodinite format

Section titled “2. Convert the logged event to Nodinite format”

Translate your API gateway logs to the Nodinite JSON Log Event format.

To uniquely identify the Log Agent, set a LogAgentValueId. Make the LogAgentValueId (mandatory number) configurable in your handler configuration. Do not hardcode this value—use different values for each environment (e.g., Prod, Test, QA).

Write the Nodinite JSON Log Event to a local, highly available intermediate storage. Configure the Nodinite Pickup Log Events Service Logging Agent to fetch logged events from your chosen storage.

4. Move logged events using the Nodinite Pickup Service

Section titled “4. Move logged events using the Nodinite Pickup Service”

The Nodinite Pickup Log Events Service Logging Agent fetches Log Events from your intermediate storage. Configure the Pickup Service to consume Log Events from your chosen source.

Define Message Types for your WSO2 API Manager logged events. Each Message Type represents a specific API operation or message format (e.g., "OrderRequest#1.0", "InvoiceResponse#2.0", "CustomerUpdate#1.0"). Message Types are mandatory and determine which Search Field Expressions will extract business data from your logged API transactions.

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 API payloads using XPath, JSON Path, Regular Expressions, or other parsers.

Create Role-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)

Section titled “8. Configure Non-Events Monitoring (Optional)”

Set up Non-Events Monitoring to track expected API call volumes and detect missing transactions from your WSO2 API Manager gateway.

Use Business Process Modeling (BPM) to correlate API transactions end-to-end across your WSO2 API Manager and other integrated systems.

WSO2 API Manager never connects to Nodinite directly, so you open these hops only:

  • WSO2 API Manager → 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 list every port and hostname per storage type.


Configure Message Types - Critical first step for searchable business data
Configure Search Field Expressions - Extract business identifiers
Create Log Views - Enable business user self-service

JSON Log Event - Required format for WSO2 API Manager logging
Message Types - Mandatory for business intelligence features
Search Field Expressions - Extract Order Numbers, Customer IDs, Invoice amounts
Log Views - Business-data searches and role-based access
Non-Events Monitoring - Track API call volumes and detect missing transactions
Business Process Modeling (BPM) - End-to-end API transaction correlation
Asynchronous Logging - Recommended approach for reliability
Context Options - Additional searchable properties
Pickup Service - Fetches log events from intermediate storage
Log Agents - Identify logging sources
Roles - Role-based access control

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...