---
title: Enable Logging of Boomi Integrations with Nodinite.
description: Learn how to enable Logging to Nodinite from the Boomi Integration platform
---

# How to enable Logging from Boomi Integration solutions to Nodinite

>Learn how to perform [Asynchronous Logging][] from Boomi Integration to :Nodinite:.

You must add a custom logging code to your Boomi Integration components to enable logging business transactions to :Nodinite:.

<div class="mermaid">
graph LR
    subgraph "Boomi Integration Component"
        roBroker(fal:fa-brackets-curly Reusable generic logging component)-->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>  

Enable self-service [Log Views][] for your business by implementing the following:  

✅ Payload logging  
✅ Context logging (key-value)  
✅ Process execution logging from selected components (any number)

_______________

# Step by step guide

Follow the steps outlined below.

In your Boomi Integration components, make sure to add custom logging (regardless of the target). Typically this is done using the **Reusable generic logging component** 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.

<div class="mermaid">
graph LR
    subgraph "Systems Integrations Solutions"
    roStrategy(fal:fa-lightbulb-on Logging Strategy) --> roBroker{fal:fa-brackets-curly Reusable</br>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-arrow-down Log API)
        roSink --> roPS
    end
</div>

![Logging Components][1]  
*Generic logging in Boomi component.*

## 1. Setup the Log properties structure

From selected components, you will eventually perform Logging. The Logging is individual to each process, and you need a common defined structure to be applied when Logging.

To create this structure, follow the steps below:  

![Add new folder structure][4]  

1. Navigate to the **Build** tab  
2. In the main tree, you can either re-use or create a new folder structure for the reusable properties shape  
3. If you are not re-using an existing folder structure; Create a new folder  

Then, click on the **New** button.  
![New button][5]  

This opens the **Create Component** modal.  
![Create Component][6]

1. Select **Process Property**
2. Name the generic log structure (i.e. `LogProperties`)
3. Select the destination folder
4. Click the **Create** button

Next, you must add the common set of properties required as part of your Logging strategy.
Open the newly created `LogProperties` component.

![Open LogProperties component][7]  

In the **Edit Properties** page, add the set of properties your logging strategy requires.

![Set default Properties][8]  
*List of common properties used for :Nodinite: Logging*  

:Nodinite: Logging requires the following properties. You can either add other properties of interest to the existing definition of a :Nodinite: [JSON Log Event][], or add them to the generic key-value collection (Context).

|Mandatory|Data Type|Field|Value|Comment|Boomi specific|  
|:---:|:---:|---|---|---|---|  
|✅ Yes|```number```|LogAgentValueId|42|Who ([Log Agents][]) sent the data|From the groovy script|  
|✅ Yes|```string```|EndPointName|`INT101: Receive Hello World Log Events`|Name of [Endpoint][Endpoints] transport|Set in the flow component where the name of the endpoint is known|  
|✅ Yes|```string```|EndPointUri|`C:\DropArea\in`|Uri for [Endpoint][Endpoints] transport|Set in the flow component where the Uri is known|  
|✅ Yes|```number```|[EndPointDirection][Endpoint Directions]|0|Direction for [Endpoint][Endpoints] transport|Define the property with a a pre-defines set of allowed values</br>![Endpoint directions][9]|  
|✅ Yes|```number```|[EndPointTypeId][EndpointTypes]|0|Type of [Endpoint][Endpoints] transport|Define as number, and set as defined by :Nodinite: standard</br>![EndpointTypeIds][10]|  
|✅ Yes|```string```|OriginalMessageTypeName|`https://nodinite.com/Customers/1.0#Batch`|[Message Type Name][Message Types]|Set in the flow component where the message type is known|  
|✅ Yes|```string```|LogDateTime|"2018-05-03T13:37:00.123Z"|Client Log datetime (UTC format)|Set by the generic reusable map described later|  

Some of these properties, including the optional payload are set in the mapping stage that comes later in this guide.

1. From the **Build** section; Add a **Set Properties** shape to your workflow (component).  
    ![Add a Set Properties shape][2]  
2. Click the **Configure** button.  
    ![Configure Set Properties Shape button][3]  
3. Add the **Generic reusable logging component** to your workflow (component).  
    >This component is detailed in the next step  

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

Next, you must create the **Generic reusable logging component**. In this guide, we help you create, and write a :Nodinite: [JSON Log Event][] to the local file system as the intermediate storage.

![Reusable Logging Component][11]

1. In your folder structure; Create a new Component, name it `Reusable Generic Logging Component`
2. Set the **Start shape** properties
    a. Name it "`Logger`"  
    b. Set the **Type** to **Data Passthrough**  
    ![Start shape][13]  
3. Add a **Data Process shape** to convert the payload to a base64encoded internal  
    ![Convert to base64][12]  
    a. Name it "`Base64Encode payload`"  
    b. Set the **Process Type** to **Custom Scripting**  
    c. Set the **Script Source** to **Inline Scripting**  
    d. Select **Groovy 1.5**  
    e. Set the **Script** to:  

    ```groovy
    import java.util.Properties;
    import java.io.InputStream;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    import java.util.TimeZone;

    for( int i = 0; i < dataContext.getDataCount(); i++ ) {
        InputStream is = dataContext.getStream(i);
        Properties props = dataContext.getProperties(i);
        def inputDataString = is.getText("UTF8").bytes.encodeBase64().toString();
        dataContext.storeStream(new ByteArrayInputStream(inputDataString.getBytes()), props);
    }
    ```

4. In sequence; Add a **Map Shape**  
    ![Map Shape][14]  

5. Edit the Map
    a. Set the **Body** using the **Data Process Shape** from step 3
    b. Set the other properties using the **Log Properties** record (uniquely populated with data from the component-designer for selected flows)
    ![Transformation][15]  

To uniquely identify the [Log Agent][Log Agents], 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 Boomi Integration solution.

>[!TIP]
>Make sure to get the best out of the information you have. Map existing properties to the standard properties and attach context and payload as needed

>[!NOTE]
>**Critical: Set OriginalMessageTypeName for searchable data**
>
>When creating your [JSON Log Event][] in Boomi:
>
>1. [Message Types][] identify message formats (PurchaseOrder, Invoice, Shipment, CustomerUpdate, etc.)
>2. [Search Field Expressions][] extract business data - Order Numbers, Customer IDs, Invoice amounts, Transaction codes, etc.
>3. [Log Views][] become searchable by business identifiers, not just timestamps
>4. [Non-Events Monitoring][] can track volumes, detect missing messages, and alert on pattern anomalies
>5. [Business Process Modeling (BPM)][BPM] can correlate transactions end-to-end across Boomi Integrations and other systems
>
>**Without proper Message Types and [Search Fields][], your Boomi Integrations events are stored but not searchable by business data.** Learn more: [Log Event Processing][]

### 3. Send Event to intermediate storage

>Your intermediate storage should be close to the Boomi Integration installation (i.e. local) and highly available.

 Send the :Nodinite: [JSON Log Event][] to the intermediate storage

1. In the sequence; Add a **Connector Shape**
2. Set the **Display Name**
3. Select **Connector** - in this case the [Disk][]
4. Select **Send** as **Action**
5. Name the **Connection** and set the destination path (e.g. `C:\temp\boomi\Log Files`)
6. Name the **Operation** and set the **New Disk Connector Operation** properties
    ![Disk Connector][16]  

>[!WARNING]
>Do not log events **synchronously** to the Nodinite Log API. You should honour the asynchronous pattern using the Nodinite Pickup Service Agent.  

* :fa-arrow-to-right: [Asynchronous Logging][]  
* :fa-truck-pickup: [Pickup Log Events Service Logging Agent][Pickup Service]  

### 4. Configure the Nodinite pickup Service

The :Nodinite: [Pickup Log Events Service Logging Agent][Pickup Service] can fetch the logged events from many intermediate storages, make sure to [configure][Pickup Service - Configuration] the agent according to the output in your Boomi logging.

### 5. Enable self-service from within Nodinite

Now that you have data logged inside :Nodinite:, you can create [Role][Roles]-based [Log Views][] and invite your business to share insights and data from your logging.

_______________

## :fa-question: Frequently asked questions

Boomi Integration Logging uses the :Nodinite: [Pickup Log Events Service Logging Agent][Pickup Service].

Additional solutions to common problems and the FAQ for the :Nodinite: [Pickup Log Events Service Logging Agent][Pickup Service] exists in the [Pickup Troubleshooting][] user guide.

### :fa-play: How do I get started?

First, read our [Asynchronous Logging][] user guide.

### :fa-search-dollar: How do I access the Logged data?

Access to logged data for [Users][] is provided by the use of [Log Views][] with [Role][Roles]-based security.

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

* :fa-arrow-to-right: [Asynchronous Logging][]  
* :fa-rocket: [Install Nodinite Pickup Service][Install Pickup Service]  
* :fa-file: [Configure Message Types][Message Types] - Make your Boomi Integrations data searchable and enable advanced features  

## :fa-link-horizontal: Related Topics

* :fa-search: [Log Views][]  
* :fa-truck-pickup: [Pickup Log Events Service Logging Agent][Pickup Service]  
* :fa-file: [Message Types][] - Critical for Search Field extraction from Boomi Integrations events  
* :fa-magnifying-glass-plus: [Search Fields][] - Extract business data from Boomi Integrations messages  
* :fa-stopwatch: [Non-Events Monitoring][] - Track message volumes and patterns  
* :fa-project-diagram: [BPM][] - End-to-end process tracking across Boomi and other systems  

[1]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/LoggingComponents.png
[2]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/AddSetPropertiesShape.png
[3]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/ConfigureSetPropertiesShape.png
[4]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/AddNewFolderStructure.png
[5]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/NewButton.png
[6]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/CreateComponentModal.png
[7]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/OpenLogPropertiesComponent.png
[8]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/LogProperties.png
[9]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/EndpointDirectionValues.png
[10]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/EndPointTypeIds.png
[11]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/GenericLoggingComponentOverview.png
[12]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/Base64EncodeDataShape.png
[13]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/StartShapeLogger.png
[14]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/MapShape.png
[15]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/Transformation.png
[16]:{ndm}/Documentation%20Pictures/MonitorAgent/Boomi/Logging/NewDiskOperation.png

[Asynchronous Logging]:{ndr}/Core%20Services/Log%20API/Features/Asynchronous%20Logging.md
[BPM]:{ndr}/Repository%20Model/BPMs/Overview.md
[Disk]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/Disk.md
[Endpoint Directions]:{ndr}/Core%20Services/Log%20Event/Features/Endpoint%20Directions.md
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[EndpointTypes]:{ndr}/Core%20Services/Log%20Event/Features/Endpoint%20Types.md
[Install Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Getting%20started/2.%20Install.md
[JSON Log Event]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md
[Log Agents]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Agent.md
[Log Event Processing]:{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 Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[Pickup Service - Configuration]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Getting%20started/3.%20Configuration.md
[Pickup Troubleshooting]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Troubleshooting/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
[Search Fields]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md
[Users]:{ndr}/Administration/3.%20Access%20Management/2.%20Users/Features/What%20is%20a%20User.md