How to enable Logging from Apache Camel solutions to Nodinite
Learn how to perform Asynchronous Logging from Apache Camel to Nodinite.
You must add custom logging code to your Apache Camel solution to enable logging business transactions to Nodinite.
Enable self-service Log Views for your business by implementing the following:
Context logging (key-value)
Selected flows (any number)
Follow the steps outlined below.
In your flows, make sure to add custom logging (regardless of the target). Typically this is done using Log4J or other similar frameworks depending on your design, policy and needs
TIP: Make sure your Logging strategy is not vendor-specific. Your Logging logic should be easy to enable/disable and it should be possible to manage the log destinations without redesigning the solutions already in production.
Generic Logging logic} roBroker --> |Nodinite JSON Log Event|roSink(fal:fa-file-export Intermediate storage ) roBroker -.-> |"The other format(s)"| ro2["Other Log destination(s)"] end subgraph "Nodinite instance" roPS(fal:fa-truck-pickup Pickup Service) -->roNI(fal:fa-cloud-download Log API) roSink --> roPS end
You must translate your logs to Nodinite JSON Log Event.
To uniquely identify the Log Agent, you must provide a LogAgentValueId. To separate Logging from the different environments (e.g. Prod, Test, QA); It would be best to allow the LogAgentValueId (mandatory number) to be a configurable part of the Apache Camel solution.
The Nodinite Pickup Service can fetch the logged events from many intermediate storages.
Your intermediate storage should be close to the Apache Camel installation (i.e. local) and highly available.
The pickup Service fetches Log Events from the following intermediate sources:
|Source||Description||Recommended Monitoring Agent||External Link||Configuration|
|ActiveMQ||Fetch Log Events from ActiveMQ/ActiveMQ Artemis queues||Message Queuing Agent||Apache NMS ActiveMQ||Configuration|
|AnypointMQ||Fetch Log Events from MuleSoft Cloudhub AnypointMQ platform||Message Queuing Agent||AnypointMQ||Configuration|
|Azure Event Hub||Fetch Log Events from EventHub||Azure Monitoring agent||EventHub||Configuration|
|Azure ServiceBus||Fetch Log Events from Azure Service Bus||Message Queuing Agent||Azure Service Bus||Configuration|
|Disk / Folder||Fetch Log Events from file folders and SMB enabled shares||File Monitoring Agent||Configuration|
|Microsoft MSMQ||Fetch Log Events from Microsoft MSMQ||Message Queuing Agent||Configuration|
|Microsoft SQL Server||Fetch Log Events from Microsoft SQL Server||Database Monitoring Agent||Configuration|
|PostgreSQL||Fetch Log Events from PostgreSQL database instances||Database Monitoring Agent||PostgreSQL||Configuration|
Missing a source? please contact our support, firstname.lastname@example.org, and we will build it for you(!).
Apache Camel Logging uses the Nodinite Pickup Service.
First, read our Asynchronous Logging user guide.